/**
 * Plan-then-Execute strategy — Phase 1 plan, Phase 2 execute, Phase 3 synthesize.
 *
 * Port of `preste/standalone-plan-loop.ts`. The LLM produces a structured plan
 * upfront, each step is executed (tool or LLM), then a final LLM call
 * synthesises results into a coherent answer.
 *
 * Ideal for long, structured tasks where upfront planning beats reactive loops.
 *
 * @public @experimental @since 2.0.0
 */
import type { AgentStrategy } from "./types.js";
interface PlanStep {
    id: number;
    description: string;
    tool?: string;
    tool_args?: Record<string, unknown>;
}
/**
 * Parse LLM response into PlanStep[].
 *
 * Handles raw JSON array and JSON embedded in markdown code blocks. Returns
 * null if parsing fails — caller falls back to single-step plan.
 *
 * @public
 */
export declare function parsePlanFromText(text: string): PlanStep[] | null;
/**
 * Factory for the Plan-then-Execute strategy.
 *
 * @public @experimental @since 2.0.0
 */
export declare function createPlanStrategy(): AgentStrategy;
export {};
//# sourceMappingURL=plan.d.ts.map