declare const LABKEY: {
    CSRF: string,
    ActionURL: any,
    getModuleContext(moduleName: string): any;
};

export function getCSRF(): string {
    return LABKEY.CSRF || "";
}

export function getCurrentController(): string {
    return LABKEY.ActionURL.getController();
}

export function getCurrentContainer(): string {
    return LABKEY.ActionURL.getContainer();
}

export function getBaseURL(): string {
    return LABKEY.ActionURL.getBaseURL();
}

export function buildURL(controller: string, action: string, container: string): string {
    return LABKEY.ActionURL.buildURL(controller, action, container);
}

export function buildURLWithParams(controller: string, action: string, container: string, queryParams: {[name: string]: string}): string {
    return LABKEY.ActionURL.buildURL(controller, action, container, queryParams);
}

declare const __WebUtilsPageLoadData: any;

export function getPageLoadData(): any {
    return __WebUtilsPageLoadData;
}

export function getModuleContext(moduleName: string): any {
    return LABKEY.getModuleContext(moduleName) || {};
}
declare const LABKEY: {
    CSRF: string,
    ActionURL: any,
    getModuleContext(moduleName: string): any;
};

export function getCSRF(): string {
    return LABKEY.CSRF || "";
}

export function getCurrentController(): string {
    return LABKEY.ActionURL.getController();
}

export function getCurrentContainer(): string {
    return LABKEY.ActionURL.getContainer();
}

export function getBaseURL(): string {
    return LABKEY.ActionURL.getBaseURL();
}

export function buildURL(controller: string, action: string, container: string): string {
    return LABKEY.ActionURL.buildURL(controller, action, container);
}

export function buildURLWithParams(controller: string, action: string, container: string, queryParams: {[name: string]: string}): string {
    return LABKEY.ActionURL.buildURL(controller, action, container, queryParams);
}

declare const __WebUtilsPageLoadData: any;

export function getPageLoadData(): any {
    return __WebUtilsPageLoadData;
}

export function getModuleContext(moduleName: string): any {
    return LABKEY.getModuleContext(moduleName) || {};
}

export function getLinkToAnimal(id: string): string {
    return LABKEY.ActionURL.buildURL('ehr', 'participantView', null, {participantId: id});
}
Add method to get a link to an animal.
Add method to get a link to an animal.
