import type { CodeIndex } from "../types.js";
export interface MiddlewareIssue {
    code: "MW00" | "MW01" | "MW02" | "MW03";
    severity: "error" | "warning" | "info";
    message: string;
    file: string;
    line: number;
}
export interface MiddlewareAuditResult {
    middleware_file: string | null;
    handlers: string[];
    sequence: string[];
    routes_protected_count: number;
    issues: MiddlewareIssue[];
    summary: {
        handlers_total: number;
        issues_total: number;
    };
}
export declare function auditAstroMiddlewareFromRoot(root: string): Promise<MiddlewareAuditResult>;
export declare function auditAstroMiddlewareFromIndex(index: CodeIndex): Promise<MiddlewareAuditResult>;
export declare function astroMiddlewareAudit(args: {
    project_root?: string;
    repo?: string;
}): Promise<MiddlewareAuditResult>;
//# sourceMappingURL=astro-middleware.d.ts.map