/**
 * @fileoverview Orchestrator plan generation — converts goals into phased plans.
 *
 * Wraps PlanOrchestrator for AI-powered plan generation, then groups the
 * resulting PlanItems into sequential phases with team strategies and
 * verification criteria.
 *
 * Phase grouping algorithm:
 * 1. Topological sort by dependencies (Kahn's algorithm)
 * 2. Group into dependency layers
 * 3. Sub-group by TDD phase within layers
 * 4. Merge small adjacent phases
 * 5. Assign team strategies based on parallelism potential
 *
 * Key exports:
 * - `OrchestratorPlanner` class — plan generation + phase grouping
 *
 * @dependencies plan-orchestrator (AI plan generation), types (OrchestratorPlan, PlanItem)
 * @consumedby orchestrator-loop
 *
 * @module orchestrator-planner
 */
import { type ProgressCallback } from './plan-orchestrator.js';
import type { TerminalMultiplexer } from './mux-interface.js';
import type { OrchestratorPlan, OrchestratorConfig } from './types.js';
export declare class OrchestratorPlanner {
    private mux;
    private workingDir;
    private config;
    private orchestrator;
    constructor(mux: TerminalMultiplexer, workingDir: string, config: OrchestratorConfig);
    /**
     * Generate a phased plan from a user goal.
     *
     * Uses PlanOrchestrator for AI plan generation, then groups results into phases.
     */
    generatePlan(goal: string, onProgress?: ProgressCallback): Promise<OrchestratorPlan>;
    /** Cancel in-progress plan generation. */
    cancel(): Promise<void>;
    /**
     * Group PlanItems into sequential phases.
     *
     * Algorithm:
     * 1. Build dependency graph and assign IDs to items without them
     * 2. Topological sort into dependency layers (Kahn's algorithm)
     * 3. Sub-group within each layer by TDD phase
     * 4. Merge small phases with their neighbors
     */
    private groupIntoPhases;
    private createPhase;
    private generatePhaseName;
    private assignTeamStrategies;
    private computeTeamStrategy;
    private buildTeamLeadPrompt;
    private generateCompletionPhrases;
    private estimateComplexity;
}
//# sourceMappingURL=orchestrator-planner.d.ts.map