/** * PM-Core V2 backfill: create child_task AC projections for all existing * parent-child relationships. * * The add-task path has created parent-owned child_task projections since * T10569, but tasks created before that migration have zero typed child * AC rows. This backfill retroactively populates them. * * Works directly against the tasks.db SQLite file for efficient batch * operations, with an accessor-only fallback for programmatic use. * * @saga T10538 (SG-PM-CORE-V2) * @task T10639 */ export interface BackfillChildProjectionOptions { /** Preview only — do not write to DB. Default: false. */ dryRun?: boolean; /** Restrict to specific parent task IDs. Default: all parents. */ parentIds?: string[]; } export interface BackfillChildProjectionChange { parentId: string; childCount: number; rebuilt: boolean; auditBeforeStatus: string; auditAfterStatus: string; } export interface BackfillChildProjectionResult { dryRun: boolean; parentsScanned: number; parentsChanged: number; changes: BackfillChildProjectionChange[]; } export declare function backfillChildProjections(projectRoot: string, options?: BackfillChildProjectionOptions): Promise; //# sourceMappingURL=backfill-child-projections.d.ts.map