import type { KeyPlanData } from './key-rewriter.js'; export interface ImportState { lastProcessedAt?: number | string; source: string; sourceWorkspaceId?: string; } export declare class CrossSourceError extends Error { readonly requestedSource: string; readonly storedSource: string; constructor(storedSource: string, requestedSource: string); } export declare function writeImportState(outputDir: string, state: ImportState): void; export declare function readImportState(outputDir: string): ImportState | null; export declare function writeKeyPlan(outputDir: string, plan: KeyPlanData): void; /** The persisted plan, or null when absent/unreadable (treat as first run). */ export declare function readKeyPlan(outputDir: string): KeyPlanData | null; export declare function assertSourceMatches(outputDir: string, requestedSource: string): void; export declare function removeQfFromGitignore(outputDir: string): void;