export interface HistoryEntry {
    id: string;
    type: "operation" | "validation" | "brain-update" | "question-answer" | "agent-run" | "pipeline";
    action: string;
    params: Record<string, unknown>;
    result: unknown;
    status: "success" | "failure" | "rolled-back";
    timestamp: string;
    duration: number;
    parentId?: string;
    trace?: HistoryTraceEntry[];
}
export interface HistoryTraceEntry {
    stage: string;
    status: string;
    detail?: string;
    error?: string;
    duration?: number;
}
export interface HistoryFilter {
    type?: string;
    status?: string;
    since?: string;
    limit?: number;
}
export declare class ExecutionHistory {
    private historyPath;
    constructor(baseDir?: string);
    record(entry: Omit<HistoryEntry, "id" | "timestamp">): Promise<string>;
    list(filters?: HistoryFilter): Promise<HistoryEntry[]>;
    get(id: string): Promise<HistoryEntry | undefined>;
    getTimeline(): Promise<HistoryEntry[]>;
    export(format: "json" | "md"): Promise<string>;
    private load;
    private save;
}
//# sourceMappingURL=ExecutionHistory.d.ts.map