export { capPathSegment, stepArtifactFileName, recordingCheckpointsEnabled, resolveCheckpointsConfig, captureRecordingCheckpoints, computeSpanVerdict, promoteRecordingSpan, buildCheckpointOutputs, }; export type { CheckpointsConfig, CheckpointEntry, SpanVerdict }; declare function capPathSegment(segment: string, max?: number): string; declare function stepArtifactFileName({ step, stepIndex, stepCount, testId, }: { step: any; stepIndex: number; stepCount: number; testId: string; }): string; type CheckpointEntry = { fileName: string; stagingPath: string; baselinePath: string; variation?: number; baselineMissing?: boolean; error?: string; }; type CheckpointsConfig = { maxVariation: number; baselineDir: string; stagingDir: string; entries: CheckpointEntry[]; /** * Set when a step FAILed while this span was active. A dirty span's * checkpoint set is incomplete (failed/unreached steps have no entries), * so orphan-based verdicts would misread it as "steps removed" -- the * verdict, promote, and seeding are all skipped for dirty spans. */ spanDirty?: boolean; }; declare function recordingCheckpointsEnabled(record: any): boolean; declare function resolveCheckpointsConfig({ record, targetPath, handleId, }: { record: any; targetPath: string; handleId: string; }): CheckpointsConfig | null; type SpanVerdict = { changed: boolean; reasons: string[]; orphans: string[]; }; declare function computeSpanVerdict({ entries, baselineDir, maxVariation, targetExists, }: { entries: CheckpointEntry[]; baselineDir: string; maxVariation: number; targetExists: boolean; }): SpanVerdict; declare function promoteRecordingSpan({ config, stagingTarget, targetPath, entries, orphans, baselineDir, }: { config: any; stagingTarget: string; targetPath: string; entries: CheckpointEntry[]; orphans: string[]; baselineDir: string; }): { videoPromoted: boolean; seededBaselines: number; baselineFailures: number; }; declare function buildCheckpointOutputs(entries: CheckpointEntry[]): { checkpoints: any[]; maxCheckpointVariation: number; checkpointErrors: number; }; declare function captureRecordingCheckpoints({ config, driver, recordingHost, step, stepStatus, stepIndex, stepCount, testId, appSession, }: { config: any; driver: any; recordingHost: any; step: any; stepStatus?: string; stepIndex: number; stepCount: number; testId: string; appSession?: any; }): Promise; //# sourceMappingURL=recordingCheckpoints.d.ts.map