import { PANERELAY_PROTOCOL_VERSION } from './constants.js'; import { type AutomationEngineId, type RelaySessionActor } from './index.js'; export declare const CDP_BOOTSTRAP_MAX_REQUEST_BYTES: number; export declare const CDP_BOOTSTRAP_DEFAULT_TICKET_TTL_MS = 30000; export declare const CDP_BOOTSTRAP_DEFAULT_CONNECTION_WINDOW_MS = 30000; export declare const CDP_BOOTSTRAP_MAX_OUTSTANDING_TICKETS = 32; export type CdpBootstrapConnectionPolicy = 'single'; export type CdpBootstrapErrorCode = 'invalid-request' | 'unauthorized' | 'browser-unavailable' | 'generation-changed' | 'unsupported' | 'ticket-limit' | 'participant-limit' | 'ticket-invalid' | 'ticket-expired' | 'ticket-consumed' | 'lane-busy' | 'target-unavailable'; export interface CdpBootstrapBrowserBinding { browserId: string; generation: string; } export interface CdpBootstrapRequest { protocol: typeof PANERELAY_PROTOCOL_VERSION; browser: CdpBootstrapBrowserBinding; actor: RelaySessionActor; engine: AutomationEngineId; laneKey: string; connectionPolicy: CdpBootstrapConnectionPolicy; initialTargetId?: string; } export interface CdpBootstrapCreated { protocol: typeof PANERELAY_PROTOCOL_VERSION; cdpUrl: string; expiresAt: string; } export interface CdpBootstrapError { protocol: typeof PANERELAY_PROTOCOL_VERSION; error: { code: CdpBootstrapErrorCode; message: string; }; } export interface CdpBootstrapVersionMetadata { Browser: string; 'Protocol-Version': string; 'User-Agent': string; 'V8-Version': string; 'WebKit-Version': string; webSocketDebuggerUrl: string; } export declare function isCdpBootstrapLaneKey(value: unknown): value is string; export declare function isCdpBootstrapGeneration(value: unknown): value is string; export declare function isCdpBootstrapRequest(value: unknown): value is CdpBootstrapRequest; export declare function isCdpBootstrapCreated(value: unknown): value is CdpBootstrapCreated; //# sourceMappingURL=cdp-bootstrap.d.ts.map