import type { TimeoutOptions } from '../types.js'; /** * Creates a timeout policy that rejects if the wrapped operation * does not resolve within the specified deadline. * * Uses AbortController for cooperative cancellation when the * wrapped function supports it. * * @example * ```ts * const result = await timeout({ ms: 5000 })(() => callApi()); * ``` */ export declare function timeout(options: TimeoutOptions): (fn: () => Promise) => Promise; //# sourceMappingURL=timeout.d.ts.map