export declare class TimeoutError extends Error { constructor(what: string, timeoutMs: number); } export declare function withTimeout(promise: Promise, timeoutMs: number, error: () => Error): Promise; export declare function withDeadline(what: string, timeoutMs: number, call: (signal: AbortSignal) => Promise): Promise;