import { Observable, FetchResult, Operation, ApolloLink } from '@apollo/client'; export interface WsLinkOptions { /** * Full WS endpoint, e.g. * `wss://gw-wspace.local.burdenoff.com/workspaces/graphql`. */ url: string; /** Lazy: only open the socket on first subscription. */ lazy?: boolean; /** * Static headers forwarded as `connectionParams`. Per-subscription * headers from Apollo `operation.context.headers` always override. */ headers?: Record; /** Connection-level keepalive ping interval. Default 30 s. */ keepAliveMs?: number; debug?: boolean; } export declare class WsLink extends ApolloLink { private client; private debug; constructor(options: WsLinkOptions); /** * Tear down the underlying connection. Useful in tests and on * logout. */ dispose(): Promise; request(operation: Operation): Observable; } //# sourceMappingURL=ws-link.d.ts.map