import type { RpcEvent } from "./rpc-types.ts";
export interface RpcEventSource {
    onEvent(listener: (event: RpcEvent) => void): () => void;
    getStderr(): string;
}
export declare function waitForRpcIdle(source: RpcEventSource, timeout: number): Promise<void>;
export declare function collectRpcEvents(source: RpcEventSource, timeout: number): Promise<RpcEvent[]>;
//# sourceMappingURL=rpc-client-waits.d.ts.map