import type { CliToolRegistry } from '../workflow-tools';
import type { AgentConfig, AgentState, CliWorkflowContext, ToolRegistry } from './types';
/**
 * Main autonomous agent orchestrator
 *
 * Coordinates all agent components to:
 * - Accept high-level goals
 * - Decompose into executable tasks
 * - Execute tasks safely with approvals
 * - Manage state
 * - Handle continuous improvement mode
 * - Manage working directory for plans and tasks
 *
 * Two modes:
 * - Goal-directed: User provides a goal to achieve
 * - Continuous: Auto-discovers and fixes issues
 *
 * Optional working directory mode:
 * - Uses a user-specified directory for plans and task documentation
 * - Discovers tasks from working directory
 * - Documents completed tasks in working directory
 */
export declare class AutonomousAgent<TTools extends ToolRegistry = CliToolRegistry> {
    #private;
    constructor(config: AgentConfig, context: CliWorkflowContext<TTools>);
    /**
     * Initialize agent (acquire session, start monitors)
     */
    initialize(): Promise<void>;
    /**
     * Set goal for goal-directed mode
     */
    setGoal(goal: string): Promise<void>;
    /**
     * Run agent (goal-directed mode)
     */
    run(): Promise<void>;
    /**
     * Run in continuous improvement mode
     */
    runContinuous(): Promise<void>;
    /**
     * Stop agent
     */
    stop(): Promise<void>;
    /**
     * Cleanup and release resources
     */
    cleanup(): Promise<void>;
    /**
     * Execute a plan phase by phase
     */
    private executePlan;
    /**
     * Execute a single task
     */
    private executeTask;
    /**
     * Generate unique session ID
     */
    private generateSessionId;
    /**
     * Get current state
     */
    getState(): Promise<AgentState | null>;
    /**
     * Get metrics
     */
    getMetrics(): import("./types").AgentMetrics;
}
//# sourceMappingURL=orchestrator.d.ts.map