import type { CaptureCheckpoint, CapturePageIdentity, VariantCaptureRepairRecord, VariantCaptureManifest, VariantCaptureStatus, VariantValidatedCapture } from "./types.js"; import type { ScreenshotPageRunInput } from "./capture-run-optimizer.js"; export interface VariantCaptureState { expectedPageIds: string[]; pageIdentities: Record; pagePromptFingerprints: Record; validatedCaptures: VariantValidatedCapture[]; captureStatuses: Record; lastCheckpointId: string | null; blockedReasons: Record; recoveryAttempts: Record; repairHistory: VariantCaptureRepairRecord[]; } export declare function buildPageRunPromptFingerprint(pageRun: Pick, pageIdentity?: CapturePageIdentity | null): string; export declare function createVariantCaptureState(pageRuns: ScreenshotPageRunInput[], precomputedIdentities?: Record): VariantCaptureState; export declare function buildVariantManifestContext(params: { state: VariantCaptureState; currentPageRun: ScreenshotPageRunInput; }): VariantCaptureManifest; export declare function recordValidatedVariantCapture(params: { state: VariantCaptureState; capture: VariantValidatedCapture; checkpointId?: string | null; }): { state: VariantCaptureState; duplicateOfPageId: string | null; }; export declare function validateVariantCaptureState(state: VariantCaptureState): { ok: boolean; missingPages: string[]; blockedPages: Array<{ pageId: string; reason: string | null; }>; duplicatePageIds: Array<{ pageId: string; duplicateOfPageId: string; }>; }; export declare function hasValidatedVariantPage(state: VariantCaptureState, pageId: string | null | undefined): boolean; export declare function getVariantCaptureStatus(state: VariantCaptureState, pageId: string | null | undefined): VariantCaptureStatus; export declare function markVariantCaptureInProgress(state: VariantCaptureState, pageId: string | null | undefined): VariantCaptureState; export declare function markVariantCaptureBlocked(params: { state: VariantCaptureState; pageId: string | null | undefined; reason: string; }): VariantCaptureState; export declare function recordVariantRecoveryAttempt(state: VariantCaptureState, pageId: string | null | undefined): VariantCaptureState; export declare function recordVariantRepair(params: { state: VariantCaptureState; repair: VariantCaptureRepairRecord; }): VariantCaptureState; export declare function recordVariantCheckpoint(params: { state: VariantCaptureState; checkpoint: CaptureCheckpoint; }): VariantCaptureState;