type RawWriter = (chunk: string) => void;
type FlushScheduler = (flush: () => void) => void;
export type RpcEventOutputBuffer = {
    readonly enqueueEvent: (event: object) => void;
    readonly writeImmediate: (value: object) => void;
    readonly flushEvents: () => void;
};
export declare function createRpcEventOutputBuffer(writeRaw: RawWriter, scheduleFlush?: FlushScheduler): RpcEventOutputBuffer;
export {};
//# sourceMappingURL=event-output-buffer.d.ts.map