import { type TableDef } from "./astro-db-parser.js";
export interface DbAuditIssue {
    code: "DB00" | "DB02" | "DB03" | "DB04";
    severity: "error" | "warning" | "info";
    message: string;
    file: string;
    line: number;
    column?: string;
}
export interface DbAuditResult {
    config_file: string | null;
    tables: TableDef[];
    n_plus_one: DbAuditIssue[];
    missing_indexes: {
        column: string;
        table: string;
        code: "DB03";
    }[];
    issues: DbAuditIssue[];
    summary: {
        tables_total: number;
        issues_total: number;
    };
}
export declare function auditDbFromRoot(root: string): Promise<DbAuditResult>;
export declare function astroDbAudit(args: {
    project_root?: string;
    repo?: string;
}): Promise<DbAuditResult>;
//# sourceMappingURL=astro-db-audit.d.ts.map