import { AIMessage, HumanMessage, type ToolMessage } from '@langchain/core/messages'; import type { DynamicStructuredTool } from '@langchain/core/tools'; import type { StreamOutput } from '../types/streaming'; export interface BuilderToolBase { toolName: string; displayTitle: string; getCustomDisplayTitle?: (values: Record) => string; } export interface BuilderTool extends BuilderToolBase { tool: DynamicStructuredTool; } type SubgraphEvent = [string[], string, unknown]; type ParentEvent = [string, unknown]; export type StreamEvent = SubgraphEvent | ParentEvent; export declare const DEFAULT_WORKFLOW_UPDATE_TOOLS: string[]; export declare function cleanContextTags(text: string): string; export declare function processStreamChunk(streamMode: string, chunk: unknown): StreamOutput | null; export declare function createStreamProcessor(stream: AsyncIterable): AsyncGenerator; export declare function formatMessages(messages: Array, builderTools?: BuilderToolBase[]): Array>; export {};