import type { ContentDelta, Part, PartDelta } from "./types.ts"; /** * Because of the difference in mapping, especially in `OpenAI` cases, * where text and audio part does not have indexes * or in Google cases, where no parts have indexes, * we need to guess an index for the incoming delta * which is required in our unified interface. * * toolCallIndex does not always correspond to the index of the tool call in the deltas * because some providers keep tool call separate from other parts (e.g openai). We * can match this against the existing tool call deltas */ export declare function guessDeltaIndex(part: PartDelta, allContentDeltas: ContentDelta[], toolCallIndex?: number): number; export declare function looselyConvertPartToPartDelta(part: Part): PartDelta;