export declare const withTimeout: (promise: Promise, timeout: number) => Promise; export declare function promisify(f: (() => R) | (() => Promise)): () => Promise; export declare function promisify(f: (() => R) | (() => Promise)): () => Promise; export declare function promisify(f: ((t: T) => R) | ((t: T) => Promise)): (t: T) => Promise; export declare function promisify(f: ((t1: T1, t2: T2) => R) | ((t1: T1, t2: T2) => Promise)): (t1: T1, t2: T2) => Promise; export declare function promisify(f: ((t1: T1, t2: T2, t3: T3) => R) | ((t1: T1, t2: T2, t3: T3) => Promise)): (t1: T1, t2: T2, t3: T3) => Promise; export declare function promisify(f: ((t1: T1, t2: T2, t3: T3, t4: T4) => R) | ((t1: T1, t2: T2, t3: T3, t4: T4) => Promise)): (t1: T1, t2: T2, t3: T3, t4: T4) => Promise; export declare function promisify(f: ((t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R) | ((t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => Promise)): (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => Promise;