import type { RunHistoryRecord, RunConclusionFile, RunnerResultEntry } from '@testim/root-cause-types';
import { RootCauseRunResultEntry } from './interfaces';
export declare function concludeRun(runId: string, rootCausePath: string, timestamp: number, finalResults: Map<string, {
    runner: RunnerResultEntry;
    rootCause: RootCauseRunResultEntry;
}>): Promise<void>;
export declare function readRunsHistory(rootCauseDirPath: string): Promise<RunHistoryRecord[]>;
export declare function updateRunsHistory(history: RunHistoryRecord[], conclusion: RunConclusionFile, historyToKeep: number): void;
export declare function writeRunsHistory(rootCauseDirPath: string, history: RunHistoryRecord[]): Promise<void>;
export declare function writeRunConclusion(rootCauseDirPath: string, runId: string, conclusion: RunConclusionFile): Promise<void>;
export declare function readRunConclusion(rootCauseDirPath: string, runId: string): Promise<RunConclusionFile>;
export declare function prepareRunConclusion(runId: string, timestamp: number, data: Map<string, {
    runner: RunnerResultEntry;
    rootCause: RootCauseRunResultEntry;
}>): RunConclusionFile;
export declare function intersectRunnerAndRootCause(rootCauseSide: Map<string, RootCauseRunResultEntry>, runnerSide: Map<string, RunnerResultEntry>): Map<string, {
    runner: RunnerResultEntry;
    rootCause: RootCauseRunResultEntry;
}>;
export declare function readRunResultsDirToMap(inputDir: string): Promise<Map<string, RootCauseRunResultEntry>>;
