import type { Database } from "bun:sqlite";
export type DoctorSeverity = "info" | "warn" | "error";
export interface DoctorCheck {
    severity: DoctorSeverity;
    type: string;
    message: string;
    count?: number;
    repairable?: boolean;
}
export interface DoctorRepair {
    type: string;
    message: string;
    applied: boolean;
    count?: number;
}
export interface DoctorBackup {
    path: string;
    files: string[];
}
export interface DoctorSummary {
    errors: number;
    warnings: number;
    infos: number;
    repairable: number;
    applied: number;
}
export interface DoctorResult {
    ok: boolean;
    dry_run: boolean;
    database_path: string;
    migration: {
        current: number;
        expected: number;
    };
    backup?: DoctorBackup;
    checks: DoctorCheck[];
    repairs: DoctorRepair[];
    summary: DoctorSummary;
}
export interface RunTodosDoctorOptions {
    db?: Database;
    dbPath?: string;
    apply?: boolean;
}
export declare function runTodosDoctor(options?: RunTodosDoctorOptions): DoctorResult;
//# sourceMappingURL=doctor.d.ts.map