import type { CliToolRegistry } from '../workflow-tools';
import type { CliWorkflowContext, Task, ToolRegistry } from './types';
/**
 * Discovers tasks automatically for continuous improvement mode
 *
 * Critical behavior:
 * - Uses build output, then tests (not both in same workflow)
 * - Tracks git HEAD to invalidate cache on changes
 * - Exponential backoff in continuous mode
 */
export interface TaskDiscoveryEngine {
    discover(options?: {
        useCache?: boolean;
        includeAdvanced?: boolean;
    }): Promise<Task[]>;
    getBackoffSeconds(): number;
    increaseBackoff(): void;
    resetBackoff(): void;
}
export declare function createTaskDiscoveryEngine<TTools extends ToolRegistry = CliToolRegistry>(context: CliWorkflowContext<TTools>): TaskDiscoveryEngine;
//# sourceMappingURL=task-discovery.d.ts.map