import { type AGUIEvent, type Message } from '@ag-ui/core'; import type { ConverseStreamCommandInput, ConverseStreamOutput } from '@aws-sdk/client-bedrock-runtime'; import { type ɵRunFinish } from '@hashbrownai/core'; /** * Inputs for mapping Bedrock ConverseStream output to AG-UI events. * * @internal */ export interface MapBedrockEventsOptions { readonly events: AsyncIterable; readonly messageId: string; /** The request's model ID, reported with the token usage. */ readonly model?: string; /** Canonical context for pending native calls. */ readonly inputMessages?: readonly Message[]; /** Actual transformed request used for this stream. */ readonly requestOptions?: ConverseStreamCommandInput; readonly signal?: AbortSignal; } /** * Maps Bedrock ConverseStream output to canonical AG-UI events. * * @param options - Bedrock stream, stable assistant ID, model ID, and * cancellation signal. * @returns Canonical AG-UI message, tool, reasoning, and raw events; the * generator's return value is how the model stopped and the call's token * usage, or `undefined` when mapping stopped on abort. * * @internal */ export declare function mapBedrockEvents(options: MapBedrockEventsOptions): AsyncGenerator;