/**
 * 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<RepairAction>;
/**
 * 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<RepairAction>;
/**
 * Detect and add missing required columns on the tasks table.
 * Uses PRAGMA table_info to check actual schema vs required columns.
 *
 * @see https://github.com/anthropics/cleo/issues/63
 */
export declare function repairMissingColumns(cwd: string | undefined, dryRun: boolean): Promise<RepairAction>;
/**
 * Run all repair functions.
 * Returns all actions taken (or previewed in dry-run mode).
 */
export declare function runAllRepairs(cwd: string | undefined, dryRun: boolean): Promise<RepairAction[]>;
//# sourceMappingURL=repair.d.ts.map