import { type ChatMessageMetadata, type ChatStreamEvent, type ChatUiMessageChunk } from "../../chat/protocol.js"; import { type ConversationRunEvent, ConversationRunEventEncoder } from "./run-events.js"; import type { StreamLifecycleFrame } from "../streaming/lifecycle/index.js"; /** Event emitted for to conversation run stream. */ export declare function toConversationRunStreamEvent(chunk: ChatUiMessageChunk): ChatStreamEvent; /** Prepare conversation run stream events. */ export declare function prepareConversationRunStreamEvents(events: ChatStreamEvent[], encoder?: ConversationRunEventEncoder): ConversationRunEvent[]; /** Prepare conversation run chunk events. */ export declare function prepareConversationRunChunkEvents(chunks: ChatUiMessageChunk[], encoder?: ConversationRunEventEncoder): ConversationRunEvent[]; /** Prepare conversation run external events. */ export declare function prepareConversationRunExternalEvents(events: ConversationRunEvent[]): ConversationRunEvent[]; /** * Pure version 2 preparation entry point for fixtures and the future Stream * Delivery module. No production mirror calls this in Gate 4: wiring it into a * hosted mirror before a source-tagged delivery contract exists would * double-write lifecycle-owned UI chunks and lose local tool events that occur * after handoff. */ export declare function prepareConversationRunLifecycleEvents(input: { runId: string; attemptId: string; attemptIndex: number; messageId: string; frames: readonly StreamLifecycleFrame[]; }): ConversationRunEvent[]; //# sourceMappingURL=run-event-preparation.d.ts.map