import { StreamTool, StreamToolCall } from "./streamTool.js";
export type PreprocessOperationResult<T extends StreamTool<any>[]> = {
    operation: StreamToolCall<T>;
    isUpdateToPreviousOperation: boolean;
    isPossiblyPartial: boolean;
    metadata: any;
};
/**
 * Validates an stream of operations and filters out invalid operations.
 */
export declare function preprocessOperationsStreaming<T extends StreamTool<any>[]>(operationsStream: AsyncIterable<{
    partialOperation: any;
    isUpdateToPreviousOperation: boolean;
    isPossiblyPartial: boolean;
    metadata: any;
}>, streamTools: T): AsyncGenerator<PreprocessOperationResult<T>>;
