/** * If `promise` is resolved before `t` ms elapse, the timeout is cleared and the result of the * promise is returned. If the timeout ends first, a `TimeoutError` is thrown. */ export declare const withTimeout: (promise: Promise, t: number) => Promise; export declare class TimeoutError extends Error { constructor(message: string); } //# sourceMappingURL=withTimeout.d.ts.map