import { IncomingMessage, Server } from 'http'; import { SeeksSocketRoute } from '../service/BaseSocketService'; export type SocketRequestMessage = { action?: string; data?: any; requestId?: string; [key: string]: any; }; export type SocketResponseMessage = { action?: string; data?: any; requestId?: string; code?: number; success?: boolean; error?: boolean; message?: string; [key: string]: any; }; export declare class SocketClient { service: SeeksSocketRoute; socket: any; req: IncomingMessage; id: any; state: { [key: string]: any; }; userInfo: any; constructor(service: SeeksSocketRoute, socket: any, req: IncomingMessage); isOpen(): boolean; send(message: SocketResponseMessage | string): boolean; sendAction(action: string, data?: any, requestId?: string): boolean; close(code?: number, reason?: string): void; } export declare const registerSocketServices: (server: Server, socketServices: SeeksSocketRoute[]) => { path: any; socketService: SeeksSocketRoute; wss: any; }[];