import type { drainNotifications } from './notifications'; import type { ApplyRequest, ApplyResult } from './protocol'; export interface RpcServerHandle { port: number; token: string; stop: () => Promise; } export interface RpcServerOptions { dir: string; drain: typeof drainNotifications; apply: (request: ApplyRequest) => Promise; } export declare function startRpcServer(options: RpcServerOptions): Promise;