import type { BaseChatModel } from '@langchain/core/language_models/chat_models'; import type { BaseMessage } from '@langchain/core/messages'; import type { RunnableConfig } from '@langchain/core/runnables'; import type { StructuredTool } from '@langchain/core/tools'; import { z } from 'zod'; import type { DiscoveryContext } from '../types/discovery-types'; import type { PlanDecision, PlanOutput } from '../types/planning'; import type { SimpleWorkflow } from '../types/workflow'; export declare const plannerOutputSchema: z.ZodObject<{ summary: z.ZodString; trigger: z.ZodString; steps: z.ZodArray>; suggestedNodes: z.ZodOptional>; }, "strip", z.ZodTypeAny, { description: string; subSteps?: string[] | undefined; suggestedNodes?: string[] | undefined; }, { description: string; subSteps?: string[] | undefined; suggestedNodes?: string[] | undefined; }>, "many">; additionalSpecs: z.ZodOptional>; }, "strip", z.ZodTypeAny, { summary: string; trigger: string; steps: { description: string; subSteps?: string[] | undefined; suggestedNodes?: string[] | undefined; }[]; additionalSpecs?: string[] | undefined; }, { summary: string; trigger: string; steps: { description: string; subSteps?: string[] | undefined; suggestedNodes?: string[] | undefined; }[]; additionalSpecs?: string[] | undefined; }>; export type PlannerOutput = z.infer; export interface PlannerAgentConfig { llm: BaseChatModel; tools?: StructuredTool[]; } export declare function createPlannerAgent(config: PlannerAgentConfig): import("langchain").ReactAgent[], readonly StructuredTool[]>>; export type PlannerAgentType = ReturnType; export interface PlannerNodeInput { userRequest: string; discoveryContext: DiscoveryContext; workflowJSON: SimpleWorkflow; planPrevious?: PlanOutput | null; planFeedback?: string | null; selectedNodesContext?: string; } export interface PlannerNodeResult { planDecision?: PlanDecision; planOutput?: PlanOutput | null; planFeedback?: string | null; planPrevious?: PlanOutput | null; mode?: 'build'; messages?: BaseMessage[]; } export declare function parsePlanDecision(value: unknown): { action: PlanDecision; feedback?: string; }; export declare function invokePlannerNode(agent: PlannerAgentType, input: PlannerNodeInput, config?: RunnableConfig): Promise;