/** * Authenticated WebSocket wrapper for ServiceNow AMB connections * * This wrapper ensures cookies are properly included in WebSocket connections * for authentication with ServiceNow's AMB server. */ import * as ws from 'ws'; export declare class AuthenticatedWebSocket { static cookieHeader: string | null; /** * Set the cookie header to be used for all WebSocket connections * @param cookies Cookie string (e.g., "JSESSIONID=xxx; glide_session_store=yyy") */ static setCookies(cookies: string): void; /** * Create a WebSocket with authentication cookies * This is used by CometD to create WebSocket connections */ static create(url: string, protocols?: string | string[]): ws.WebSocket; } /** * Factory function that returns a WebSocket constructor with cookies * Using 'any' type to avoid complex WebSocket type inference issues */ export declare function createAuthenticatedWebSocketClass(cookies?: string): any;