export declare class TimeoutError extends Error { readonly code = "TIMEOUT"; constructor(label: string, timeoutMs: number); } export declare function withTimeout(options: { label: string; timeoutMs: number; signal?: AbortSignal; fn: (signal: AbortSignal) => Promise; }): Promise;