export declare function getEnvValue(name: string, type?: T): T extends 'boolean' ? boolean : T extends 'number' ? number : T extends 'string' ? string : string | undefined; /** * Retrieves the value of an environment variable in a case-insensitive manner. * * Traversing in order upper case, lower case and mixed case * * @param {string} key - The name of the environment variable to lookup. * @return {string | undefined} The value of the environment variable if found, or undefined if not found. */ export declare function getEnvCaseInsensitive(key: string): string | undefined; export declare function guid(): string; export declare function shortid(): string; export declare function jwtDecode(token: string): Record; export declare function sleep(ms: number): Promise; export declare function toJSON, TKey extends string, TProps extends Readonly>(object: TObject, props: TProps): { [key in TProps[number]]: TObject[key] extends { toJSON(): any; } ? ReturnType : TObject[key]; }; export declare function toJSON, TKey extends string, TProps extends Readonly>>(object: TObject, props: TProps): { [key in keyof TProps]: TObject[TProps[key]] extends { toJSON(): any; } ? ReturnType : TObject[TProps[key]]; }; export declare function toJSON>(object: TObject): { [key in keyof Omit]: TObject[key] extends { toJSON(): any; } ? ReturnType : TObject[key]; }; export declare function toString(object: Record): string; export declare function toUnAnchoredUri(url: string): string; export declare function toUriEncoding(url: string): string; export declare function removeUndefinedProps>(object: TObject): TObject; export declare function absolutizeUrl(url: string, baseUrl: string): string; export declare function cachify any>(func: TFunc, getKey?: (args: Parameters) => any, TTL?: number): TFunc & { getCachedValues(): ReturnType[]; setCachedValue(key: any, value: ReturnType): void; clearCache(): void; TTL?: number; }; export declare function clearCachify(): void; export declare function batchify Promise, TInput = Parameters[0][number][0], TResult = Parameters[0][number][1]['resolve']>[0]>(func: TFunc, { timeout, maxPending }: { timeout: number; maxPending?: number; }): (input: Parameters[0][number][0]) => Promise; export declare function wrap any>(func: TFunc, wrapper: (func: TFunc, ...args: Parameters) => ReturnType): TFunc; export declare function extend, TExtension extends Record>(target: TTarget, extension: TExtension | ((result: any) => TExtension)): TTarget & TExtension; export declare function pluralize(object: [] | number, config?: [manyCase: string, singleCase: string]): string; export declare function deepEqual(value1: any, value2: any): boolean; /** * Deduplicates an array based on a custom equality function, applies an asynchronous transformation * to the unique values, and maps the results back to the original array structure. * * @param items - The array of items to process. * @param transform - A function that receives unique items and returns transformed results. * @param isEqual - A function that determines whether two items are considered equal. * @returns A Promise resolving to an array where each item is replaced with its transformed result. */ export declare function dedupAndMap(items: T[], transform: (arr: T[]) => Promise, isEqual: (a: T, b: T) => boolean): Promise; /** * Zips two arrays together, yielding pairs of elements from each array. * If the arrays are of different lengths, the shorter length is used (it's the user res) */ export declare function zip(a: A[], b: B[]): Generator<[A, B]>;