import type { AsyncFn } from './types.js';
interface WithTimeoutOpts {
    maxTimeMs?: number;
}
export declare function withTimeout(fn: AsyncFn, opts?: WithTimeoutOpts): (this: unknown, ...args: any[]) => Promise<any>;
export {};
//# sourceMappingURL=with_timeout.d.ts.map