import { SkhailService } from "@skhail/core"; export declare const WebSocket: any; export declare enum HTTPProtocols { HTTP = "http", HTTPS = "https" } export type WebSocketFunction = (socket: typeof WebSocket, ...args: any[]) => void; export type WebSocketFunctionArgs = Type extends [ typeof WebSocket, ...infer args ] ? args : []; export type WebSocketFunctions = { [Key in keyof Omit> as Service[Key] extends (socket: typeof WebSocket, ...args: any[]) => void ? Key : never]: Service[Key] extends (socket: typeof WebSocket, ...args: any[]) => void ? Service[Key] : never; };