import type { AgentAction, AgentFinish } from '@langchain/classic/agents'; import type { ToolsAgentAction } from '@langchain/classic/agents/openai/output_parser'; import type { BaseChatMemory } from '@langchain/classic/memory'; import { DynamicStructuredTool, type Tool } from '@langchain/classic/tools'; import type { BaseChatModel } from '@langchain/core/language_models/chat_models'; import { HumanMessage } from '@langchain/core/messages'; import { ChatPromptTemplate, type BaseMessagePromptTemplateLike } from '@langchain/core/prompts'; import type { IExecuteFunctions, ISupplyDataFunctions, IWebhookFunctions } from 'n8n-workflow'; import type { ZodObject } from 'zod'; import { type N8nOutputParser } from './src/utils/output_parsers/N8nOutputParser'; export declare function getOutputParserSchema(outputParser: N8nOutputParser): ZodObject; type BinaryPassthroughOptions = { passthroughBinaryImages?: boolean; passthroughBinaryPdfs?: boolean; }; type BinaryContentFormat = 'standard' | 'openai-responses'; export declare function extractBinaryMessages(ctx: IExecuteFunctions | ISupplyDataFunctions, itemIndex: number, options: BinaryPassthroughOptions, contentFormat?: BinaryContentFormat): Promise; export declare function fixEmptyContentMessage(steps: AgentFinish | ToolsAgentAction[]): AgentFinish | ToolsAgentAction[]; export declare function handleAgentFinishOutput(steps: AgentFinish | AgentAction[]): AgentFinish | AgentAction[]; export declare function handleParsedStepOutput(output: Record, memory?: BaseChatMemory): { returnValues: Record; log: string; }; export declare const getAgentStepsParser: (outputParser?: N8nOutputParser, memory?: BaseChatMemory) => (steps: AgentFinish | AgentAction[]) => Promise; export declare function getChatModel(ctx: IExecuteFunctions | ISupplyDataFunctions | IWebhookFunctions, index?: number): Promise; export declare function getOptionalMemory(ctx: IExecuteFunctions | ISupplyDataFunctions | IWebhookFunctions): Promise; export declare function getTools(ctx: IExecuteFunctions | ISupplyDataFunctions | IWebhookFunctions, outputParser?: N8nOutputParser): Promise>; export declare function prepareMessages(ctx: IExecuteFunctions | ISupplyDataFunctions, itemIndex: number, options: { systemMessage?: string; passthroughBinaryImages?: boolean; passthroughBinaryPdfs?: boolean; outputParser?: N8nOutputParser; model?: BaseChatModel; }): Promise; export declare function preparePrompt(messages: BaseMessagePromptTemplateLike[]): ChatPromptTemplate; export {};