import type { ExecutionRecord, TaskType } from './types';
/**
 * Tracks task execution history
 */
export declare class TaskHistory {
    #private;
    constructor(stateDir: string);
    /**
     * Add execution record
     */
    add(record: ExecutionRecord): Promise<void>;
    /**
     * Find records by task type
     */
    findByType(type: TaskType): ExecutionRecord[];
    /**
     * Find recent failures
     */
    findFailed(limit?: number): ExecutionRecord[];
    /**
     * Find slow tasks
     */
    findSlow(limit?: number): ExecutionRecord[];
    /**
     * Get estimation accuracy
     */
    getEstimationAccuracy(): {
        averageError: number;
        averageErrorPercentage: number;
        totalTasks: number;
    };
    /**
     * Generate report
     */
    generateReport(): string;
    /**
     * Save history to disk
     */
    private save;
    /**
     * Load history from disk
     */
    load(): Promise<void>;
    /**
     * Clear history
     */
    clear(): Promise<void>;
}
//# sourceMappingURL=task-history.d.ts.map