export interface ProjectRef { projectId: string; rootPath: string; collectorVersion?: number | null; } /** Pure: which projects need re-deriving — older version AND repo present. */ export declare function selectProjectsToReindex(projects: ProjectRef[], current: number, existsFn?: (p: string) => boolean): { reindex: ProjectRef[]; missing: ProjectRef[]; }; export interface MigrateResult { selected: number; reindexed: number; failed: number; missing: number; } export declare function runCollectorMigration(opts: { base: string; authHeaders: Record; current: number; /** Re-derive one repo (collect + push). Returns success. Injected by the daemon. */ reindex: (rootPath: string) => Promise; fetchProjects?: () => Promise; existsFn?: (p: string) => boolean; log?: (m: string) => void; }): Promise; //# sourceMappingURL=collector-migrate.d.ts.map