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