/** Wrapper for Node.js promisify */ type Callback = (error: unknown, args: A) => void; /** * Typesafe promisify implementation * @link https://dev.to/_gdelgado/implement-a-type-safe-version-of-node-s-promisify-in-7-lines-of-code-in-typescript-2j34 * @param fn * @returns */ export declare function promisify1(fn: (args: T, cb: Callback) => void): (args: T) => Promise; export declare function promisify2(fn: (arg1: T1, arg2: T2, cb: Callback) => void): (arg1: T1, arg2: T2) => Promise; export declare function promisify3(fn: (arg1: T1, arg2: T2, arg3: T3, cb: Callback) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise; export {}; //# sourceMappingURL=promisify.d.ts.map