/** Default maximum duration for API dependency work. */ export declare const duration = 15000; /** Returns a caller signal or a signal carrying the default deadline. */ export declare function signal(options?: signal.Options): AbortSignal; export declare namespace signal { /** Options for {@link signal}. */ type Options = { /** Existing caller signal. */ signal?: AbortSignal | null | undefined; /** Default maximum duration in milliseconds. */ timeout?: number | undefined; }; } /** Waits for a duration, rejecting immediately when `signal` aborts. */ export declare function wait(options: wait.Options): Promise; export declare namespace wait { /** Options for {@link wait}. */ type Options = { /** Duration to wait in milliseconds. */ milliseconds: number; /** Signal that cancels the wait. */ signal: AbortSignal; }; } /** Runs asynchronous work under a hard deadline and aborts cooperative work. */ export declare function run(work: (signal: AbortSignal) => Promise, options?: run.Options): Promise; export declare namespace run { /** Options for {@link run}. */ type Options = { /** Error returned to the caller when the deadline expires. */ error?: Error | undefined; /** Maximum duration in milliseconds. */ timeout?: number | undefined; }; } //# sourceMappingURL=Timeout.d.ts.map