import { type AgUiEncodedEvent, type AgUiEncoderState, type AgUiEncoderStateOptions, type AgUiRunFinishedMetadata, type AgUiRuntimeStreamEvent } from "./encoder.js"; import type { AgentResponse } from "../types.js"; /** Public API contract for AG-UI runtime event encoder. */ export interface AgUiRuntimeEventEncoder { state: AgUiEncoderState; encode: (event: AgUiRuntimeStreamEvent) => AgUiEncodedEvent[]; finalize: (response: AgentResponse | null) => AgUiEncodedEvent[]; } /** Options accepted by create AG-UI runtime event encoder. */ export interface CreateAgUiRuntimeEventEncoderOptions { initialMetadata?: Partial; /** * Timing clocks forwarded verbatim to the encoder state. A single object so * that adding a clock is one edit in `AgUiEncoderStateOptions`, not a * sweep through every wrapper that happens to sit in between. */ timing?: AgUiEncoderStateOptions; } /** Create AG-UI runtime event encoder. */ export declare function createAgUiRuntimeEventEncoder(options?: CreateAgUiRuntimeEventEncoderOptions): AgUiRuntimeEventEncoder; //# sourceMappingURL=runtime-event-encoder.d.ts.map