/**
 * Astro Actions audit (6 AA detectors with A/B/C/D scoring).
 *
 * Analyses `src/actions/index.{ts,js,mjs}` to extract the set of defined
 * actions (via `defineAction({...})` calls) and cross-references how those
 * actions are invoked throughout the project (.astro frontmatter + .tsx/.jsx
 * client components).
 *
 * Detectors:
 *   AA01 missing-handler-return       — error
 *   AA02 refine-on-top-level-schema   — error (Astro issue #11641)
 *   AA03 passthrough-ignored          — warning (Astro issue #11693)
 *   AA04 file-without-multipart       — error
 *   AA05 action-called-from-server    — warning
 *   AA06 client-calls-unknown-action  — error
 *
 * Exports:
 *   - `auditAstroActionsFromIndex(index, severity?)` — testable core
 *   - `astroActionsAudit(args)` — MCP tool handler
 */
import type { CodeIndex } from "../types.js";
export interface ActionDescriptor {
    name: string;
    file: string;
    line: number;
    accept?: "json" | "form";
    has_input_schema: boolean;
    input_fields: string[];
}
export interface ActionsAuditIssue {
    code: string;
    severity: "error" | "warning" | "info";
    message: string;
    file: string;
    line: number;
    action?: string;
    fix: string;
}
export interface ActionsAuditResult {
    actions: ActionDescriptor[];
    issues: ActionsAuditIssue[];
    anti_patterns_checked: string[];
    summary: {
        total_actions: number;
        total_issues: number;
        score: "A" | "B" | "C" | "D";
    };
}
export declare function auditAstroActionsFromIndex(index: CodeIndex, severity?: "all" | "warnings" | "errors"): Promise<ActionsAuditResult>;
export declare function astroActionsAudit(args: {
    repo?: string;
    severity?: "all" | "warnings" | "errors";
}): Promise<ActionsAuditResult>;
//# sourceMappingURL=astro-actions.d.ts.map