import type { CliToolRegistry } from '../workflow-tools';
import type { AgentStateManager } from './state-manager';
import type { CliWorkflowContext, ToolRegistry } from './types';
/**
 * Continuous improvement loop
 *
 * Runs autonomously to:
 * 1. Discover issues in codebase
 * 2. Create execution plan
 * 3. Execute tasks
 * 4. Wait with exponential backoff
 * 5. Repeat until interrupted
 *
 * CRITICAL v2.1 fix: Does NOT exit when no tasks found
 */
export interface ContinuousImprovementLoop {
    start(): Promise<void>;
    stop(): Promise<void>;
    getIterationCount(): number;
    isRunning(): boolean;
}
export declare function createContinuousImprovementLoop<TTools extends ToolRegistry = CliToolRegistry>(context: CliWorkflowContext<TTools>, stateManager: AgentStateManager, _sessionId: string): ContinuousImprovementLoop;
//# sourceMappingURL=improvement-loop.d.ts.map