import type { RequestContext } from '../runtime/request-context.js'; import type { StartRpcServerOptions, RpcServerInfo, RpcServerHandle } from '../schemas/rpc-server.js'; export type ManagedRpcServer = RpcServerHandle; export interface RpcServerDependencies { start(options: StartRpcServerOptions): Promise; ready(server: ManagedRpcServer, ctx: RequestContext): Promise; advertise(topic: string, url: string): Promise<() => Promise>; } export declare function createRpcServerManager(deps: RpcServerDependencies): { start: (options: StartRpcServerOptions, ctx: RequestContext) => Promise; stop: (serverId: string) => Promise; close: () => Promise; readonly size: number; };