import { Result, StreamTool, StreamToolCall } from "./streamTool.js";
/**
 * Transforms the partialObjectStream into a stream of operations (tool calls), or indicates that the operation is invalid.
 *
 * Invalid operations can happen because:
 * a) the LLM produces an invalid result
 * b) the "partial" operation doesn't have enough data yet to execute
 */
export declare function toValidatedOperations<T extends StreamTool<any>[]>(partialObjectStream: AsyncIterable<{
    partialOperation: any;
    isUpdateToPreviousOperation: boolean;
    isPossiblyPartial: boolean;
    metadata: any;
}>, streamTools: T): AsyncGenerator<{
    operation: Result<StreamToolCall<T>>;
    isUpdateToPreviousOperation: boolean;
    isPossiblyPartial: boolean;
    metadata: any;
}>;
