export declare class TimeoutError extends Error { private timeoutMs; constructor(timeoutMs: number); } export declare function withTimeout(executor: (resolve: (value: T) => void, reject: (reason?: any) => void) => void, timeoutMs: number): Promise;