export declare const CONTROL_REQUEST_TIMEOUT_MS = 8000; export declare const EVENT_REQUEST_TIMEOUT_MS = 10000; /** Internal error used to distinguish a bounded request from a generic network failure. */ export declare class RequestDeadlineError extends Error { readonly operation: string; readonly timeoutMs: number; readonly code: "request-timeout"; constructor(operation: string, timeoutMs: number); } /** * Give one asynchronous request an absolute deadline. The race is deliberate: * it still settles when a browser, proxy, or test double ignores AbortSignal. */ export declare function withRequestDeadline(operation: string, timeoutMs: number, run: (signal: AbortSignal) => Promise, parentSignal?: AbortSignal): Promise; /** Size-aware media deadline with a hard upper bound. */ export declare function mediaRequestTimeoutMs(byteSize: number): number; //# sourceMappingURL=request-deadline.d.ts.map