/** * WebSocket detection — intercepts WS connections opened during page crawl. * Records connection URLs, message schemas, and message counts. * This lets ZeTa discover real-time API contracts (chat, notifications, presence) * that would be invisible to HTTP-only crawlers. */ export interface WsConnection { url: string; framesSent: number; framesReceived: number; /** Sampled message bodies (first 10 per connection, truncated to 500 chars) */ samples: Array<{ direction: 'sent' | 'received'; payload: string; ts: string; }>; /** Inferred protocol: 'json-rpc' | 'socket.io' | 'graphql-ws' | 'raw' */ protocol: string; openedAt: string; } export declare function attachWebSocketDetector(cdpSession: any): { getConnections(): WsConnection[]; detach(): void; };