/** * Repair functions for fixable data integrity issues — SQLite era. * * Each function performs a direct Drizzle SQL update (no in-memory TaskFile mutation). * Used by both `upgrade` and `validate --fix`. * * @task T4862 */ /** A single repair action with status. */ export interface RepairAction { action: string; status: 'applied' | 'skipped' | 'preview'; details: string; } /** * Set size='medium' on tasks that have no size value. * Operates directly on the SQLite tasks table. */ export declare function repairMissingSizes(cwd: string | undefined, dryRun: boolean): Promise; /** * Set completedAt=now() on done/cancelled tasks that are missing a completedAt timestamp. * Operates directly on the SQLite tasks table. */ export declare function repairMissingCompletedAt(cwd: string | undefined, dryRun: boolean): Promise; /** * Run all repair functions. * Returns all actions taken (or previewed in dry-run mode). * * Note: column-level schema repair was removed in T11527 — DDL is now owned * exclusively by the forward Drizzle migrations, not post-hoc `ensureColumns`. */ export declare function runAllRepairs(cwd: string | undefined, dryRun: boolean): Promise; //# sourceMappingURL=repair.d.ts.map