import { Callback, Executor, GenericValueCallback, Processor, Supplier } from '../../typings/function-types'; export declare namespace Functions { interface EnumObject { [enumValue: number]: string; } const getEnumValues: (e: EnumObject) => string[]; const DEFAULT_COERSIONS: { boolean: (val: string) => boolean; array: (val: string) => string[]; string: (val: string) => string; object: (val: string) => any; integer: typeof parseInt; }; const overrideThresholds: (key: string, ...args: any[]) => any; const removeProps: (covObj: any, patterns: string[]) => any; const mixin: (destination: any, ...args: any[]) => any; const coersions: Record unknown>; const props: void; const extend: (target: any, source: any) => any; const inherits: (subType: any, superType: any) => void; /** * @param {function} f - A function. * @param {function} g - A function. * @returns {function} A logical-and function of `f` and `g`. */ const and: (f: any, g: any) => Processor; /** * @param {function} f - A function. * @param {function} g - A function. * @param {function|null} h - A function. * @returns {function} A logical-or function of `f`, `g`, and `h`. */ const or: (f: any, g: any, h: any) => Processor; /** * @param {function} f - A function. * @returns {function} A logical-not function of `f`. */ const not: (f: any) => Processor; const makeBackgroundable: any>(pool: any, func: T) => (...funcArgs: Parameters) => Promise>; const workerTs: (file: string, wkOpts: WorkerOptions) => any; const run: (fn: any, args: any) => any; const composeAsync: (...funcArgs: any[]) => Promise<(value: any) => Promise>; const mergeProps: (...obj: unknown[]) => T; const wait: (ms?: number, ...args: any[]) => Promise; const wait2: (milliseconds: number) => Promise; const curry: (fn: any, ...args: any[]) => any; const proxy: (callback: Callback, self: any, ...args: any[]) => Supplier; const substitute: (prevValue: any, newValue: any, property: string, array: T[]) => any; const debounce: (func: any, timeout: number) => Executor; const chainProvider: { add: (fn: any) => void; flush: (resp: any) => void; }; const trace: (obj: any, method: string) => void; const addEventHandler: (that: any) => void; const getFunctionArgs: (func: any) => string[]; const getFunctionArgTypes: (func: any) => string[]; const polymorph: (...args: any[]) => any; const callLater: (fn: any, context: any, ...args: any[]) => void; const createAdders: () => any[]; const pluck: (name: string) => any; const autoCurry: (fn: any, numArgs: number) => any; const moduleProvider: (name: string, factory: any, root: any) => void; const tupleExists: (val: [U, T | undefined]) => val is [U, T]; const exists: (val: T | undefined) => val is T; const apply: (...args: T[]) => Processor, U>; /** * Similar to OpenSeadragon.delegate, but it does not immediately call * the method on the object, returning a function which can be called * repeatedly to delegate the method. It also allows additional arguments * to be passed during construction which will be added during each * invocation, and each invocation can add additional arguments as well. * * @function * @param {Object} object * @param {Function} method * @param [args] any additional arguments are passed as arguments to the * created callback * @returns {Function} */ const createCallback: (object: any, method: any, ...args: any[]) => GenericValueCallback; const executeTask: (task: any) => Promise; const executeTasks: (...tasks: any[]) => (() => Promise); const hasKey: (k: K, o: T) => o is T & Record; } //# sourceMappingURL=functions.d.ts.map