import { Defer } from "./Defer.js"; export declare function timeout(timeout: number): Defer; export declare function wait(fn: (re: (v: T) => void) => void): Promise; export declare function watch(expected: T, fn: () => Promise, tries?: number): Promise; export declare function throttle(fn: (...args: A) => R, t?: number): (...args: A) => Promise; export declare function all

(pending: Promise

[]): Promise; export declare function allSettled(pending: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult>; }>; export declare function toAsync(fn: (...args: A) => R): (...args: A) => Promise; export declare function asyncCall(fn: (...args: A) => R, ...args: A): Promise; //# sourceMappingURL=fn.d.ts.map