import { type Server as HttpServer } from 'node:http'; import type { GraphileConfig } from 'graphile-config'; import type { GraphQLSchema } from 'graphql'; import { type Client as GqlWsClient } from 'graphql-ws'; import { WebSocketServer } from 'ws'; export interface WsTestServerInput { schema: GraphQLSchema; resolvedPreset: GraphileConfig.ResolvedPreset; pgSubscriber: unknown; pgSubscriberKey?: string; buildPgSettings?: (connectionParams: Record) => Record | undefined; } export interface WsTestServer { serverUrl: string; httpServer: HttpServer; wss: WebSocketServer; createClient(connectionParams?: Record): GqlWsClient; dispose(): Promise; } export declare function createWsTestServer(input: WsTestServerInput): Promise;