import type { RunRecord } from './record.js'; /** What two runs came to, beside each other. */ export interface RunComparison { /** False when the bars hash or the contract differ. */ readonly comparable: boolean; readonly differences: readonly { readonly what: 'bars' | 'contract' | 'costs' | 'fill' | 'inputs' | 'program' | 'range'; readonly detail: string; }[]; readonly deltas: readonly { /** A field of Summary. */ readonly name: string; readonly before: number; readonly after: number; readonly delta: number; }[]; /** (expectancyB - expectancyA) / sqrt(seA^2 + seB^2). */ readonly separation: number | null; /** Trades opening on the same bar with the same side in both. */ readonly sharedTrades: number; } /** * Two runs, side by side, and whether the gap between them is a result. * * **Comparable is about the inputs, not about the outputs.** Two runs over * different bars, or on different contracts, are two studies: the money in one * is not the money in the other, and subtracting them is arithmetic with no * meaning behind it. A different program over the same bars is the opposite of * that. It is the comparison somebody actually wants, so a differing program is * reported as a difference and does not make the pair incomparable. * * **Every difference is named even when the pair is comparable**, because the * reason a run improved is as often a setting somebody forgot they had changed * as it is the change they meant to test. A comparison reporting only the money * would let that through, and it would read as a result. */ export declare function compareRuns(before: RunRecord, after: RunRecord): RunComparison; //# sourceMappingURL=compare.d.ts.map