import type { AgentEventEmitter } from "../../agentEvents.js";
type AgentEventStreamResponse = {
    writeHead: (statusCode: number, headers: Record<string, string>) => void;
    write: (chunk: string) => unknown;
    end: () => unknown;
    writableEnded: boolean;
    destroyed: boolean;
};
type AgentEventStreamOptions = {
    vercelAiUiMessageStream?: boolean;
    closeActiveBlockOnToolStart?: boolean;
};
export declare function createSseEventEmitter(res: AgentEventStreamResponse, options?: AgentEventStreamOptions): AgentEventEmitter;
export {};
