export function shouldUseNewTracker(resourceType: any): boolean; /** * Converts an attribute ID and value into a DHIS2 attribute object * @public * @example * fn(state => { * const s = util.attr('w75KJ2mc4zz', 'Elias'); * console.log(s); * return state; * }) * @function * @param {string} attribute - A tracked entity instance (TEI) attribute ID. * @param {string} value - The value for that attribute. * @returns {object} */ export function attr(attribute: string, value: string): object; /** * Converts a dataElement and value into a DHIS2 dataValue object * @public * @example * fn(state => { * const s = util.dv('f7n9E0hX8qk', 12); * console.log(s); * return state * }) * @function * @param {string} dataElement - A data element ID. * @param {string} value - The value for that data element. * @returns {object} */ export function dv(dataElement: string, value: string): object; /** * Gets an attribute value by its case-insensitive display name * @public * @example * fn(state => { * const s = util.findAttributeValue(state.data.trackedEntities[0], 'first name'); * console.log(s); * return state * }) * @function * @param {Object} trackedEntity - A tracked entity instance (TEI) object * @param {string} attributeDisplayName - The 'displayName' to search for in the TEI's attributes * @returns {string} */ export function findAttributeValue(trackedEntity: any, attributeDisplayName: string): string; /** * Gets an attribute value by its uid * @public * @example * fn(state =>{ * const s = util.findAttributeValueById(state.tei, 'y1w2R6leVmh'); * console.log(s); * return state * }) * @function * @param {Object} trackedEntity - A tracked entity instance (TEI) object * @param {string} attributeUid - The uid to search for in the TEI's attributes * @returns {string} */ export function findAttributeValueById(trackedEntity: any, attributeUid: string): string; /** * Determines the attribute name for a DHIS2 system ID given a resource type. * @param {string} resourceType * @returns {string} */ export function selectId(resourceType: string): string; export function handleHttpResponse(result: any, state: any): any; export function handleResponse(result: any, state: any): any; export function prettyJson(data: any): string; export function ensureArray(data: any, key: any): { [x: number]: any[]; }; export function prefixVersionToPath(configuration: any, options: any, resourceType: any, path?: any): string; export function request(configuration: any, requestData: any): Promise; export namespace CONTENT_TYPES { const xml: string; const json: string; const pdf: string; const csv: string; const xls: string; } export function configureAuth(auth: any, headers?: {}): {};