import WebSocket from "ws"; import { EthereumProvider, JsonRpcRequest, JsonRpcServer as IJsonRpcServer, NetworkConfig } from "hardhat/types"; import { JsonRpcResponse } from "hardhat/internal/util/jsonrpc"; export interface CTFWebsocketServerConfig { hostname: string; port: number; networkConfig: NetworkConfig; initializationHook?: (provider: EthereumProvider) => Promise; responseHook?: (provider: EthereumProvider, rpcReq: JsonRpcRequest, rpcResp: JsonRpcResponse) => Promise; } export declare class CTFWebsocketServer implements IJsonRpcServer { private _config; private _wsServer; constructor(config: CTFWebsocketServerConfig); handleWs: (ws: WebSocket) => Promise; listen: () => Promise<{ address: string; port: number; }>; waitUntilClosed: () => Promise; close: () => Promise; } //# sourceMappingURL=ctfServer.d.ts.map