import type { ProviderRuntimeService } from "./provider-runtime-service.js"; import type { RemoteAccessController } from "./remote-access-auth.js"; import type { Server as HttpServer, IncomingMessage, ServerResponse } from "node:http"; import { Server as SocketIOServer } from "socket.io"; export type ProviderRealtimeOptions = { allowedOrigins: () => Set; remoteAccess: RemoteAccessController; runtime: ProviderRuntimeService; }; export type ProviderRealtimeGateway = { controlIo: SocketIOServer; handleControlHttpRequest(request: IncomingMessage, response: ServerResponse): boolean; }; export declare function attachProviderRealtime(server: HttpServer, options: ProviderRealtimeOptions): ProviderRealtimeGateway;