import { z } from "zod";
import { type McpResponse } from "../utils.js";
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
export declare const serverFixSchema: {
    server: z.ZodOptional<z.ZodString>;
    action: z.ZodDefault<z.ZodEnum<{
        apply: "apply";
        history: "history";
        rollback: "rollback";
        "rollback-all": "rollback-all";
        "rollback-to": "rollback-to";
    }>>;
    dryRun: z.ZodDefault<z.ZodBoolean>;
    rollbackId: z.ZodOptional<z.ZodString>;
    checks: z.ZodOptional<z.ZodArray<z.ZodString>>;
    category: z.ZodOptional<z.ZodString>;
    top: z.ZodOptional<z.ZodNumber>;
    target: z.ZodOptional<z.ZodNumber>;
    profile: z.ZodOptional<z.ZodString>;
    diff: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
    report: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
    force: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
};
export declare const serverFixOutputSchema: z.ZodObject<{
    result: z.ZodDiscriminatedUnion<[z.ZodObject<{
        action: z.ZodLiteral<"apply">;
        dryRun: z.ZodBoolean;
        safeModeForcedDryRun: z.ZodOptional<z.ZodBoolean>;
        preview: z.ZodObject<{
            groups: z.ZodArray<z.ZodObject<{
                severity: z.ZodString;
                checks: z.ZodArray<z.ZodObject<{
                    id: z.ZodString;
                    name: z.ZodString;
                    category: z.ZodString;
                    severity: z.ZodString;
                }, z.core.$strip>>;
            }, z.core.$strip>>;
        }, z.core.$strip>;
        rejectedChecks: z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            reason: z.ZodString;
        }, z.core.$strip>>;
        guardedCount: z.ZodNumber;
        forbiddenCount: z.ZodNumber;
        scoreBefore: z.ZodNumber;
        baselineRegression: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        regressionWarning: z.ZodOptional<z.ZodObject<{
            regressions: z.ZodArray<z.ZodString>;
            scoreRegressed: z.ZodBoolean;
            message: z.ZodString;
        }, z.core.$strip>>;
    }, z.core.$strip>, z.ZodObject<{
        action: z.ZodLiteral<"apply">;
        dryRun: z.ZodBoolean;
        applied: z.ZodArray<z.ZodString>;
        errors: z.ZodArray<z.ZodString>;
        rejectedChecks: z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            reason: z.ZodString;
        }, z.core.$strip>>;
        scoreBefore: z.ZodNumber;
        scoreAfter: z.ZodNullable<z.ZodNumber>;
        targetWarning: z.ZodOptional<z.ZodString>;
        diffSummary: z.ZodOptional<z.ZodArray<z.ZodString>>;
        reportFile: z.ZodOptional<z.ZodString>;
        baselineRegression: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        regressionWarning: z.ZodOptional<z.ZodObject<{
            regressions: z.ZodArray<z.ZodString>;
            scoreRegressed: z.ZodBoolean;
            message: z.ZodString;
        }, z.core.$strip>>;
    }, z.core.$strip>, z.ZodObject<{
        action: z.ZodLiteral<"history">;
        server: z.ZodObject<{
            name: z.ZodString;
            ip: z.ZodString;
        }, z.core.$strip>;
        entries: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        totalEntries: z.ZodNumber;
    }, z.core.$strip>, z.ZodObject<{
        action: z.ZodLiteral<"rollback">;
        fixId: z.ZodString;
        restored: z.ZodArray<z.ZodString>;
        errors: z.ZodArray<z.ZodString>;
        scoreBefore: z.ZodNumber;
        scoreAfter: z.ZodNullable<z.ZodNumber>;
    }, z.core.$strip>, z.ZodObject<{
        action: z.ZodLiteral<"rollback-all">;
        rolledBack: z.ZodArray<z.ZodString>;
        errors: z.ZodArray<z.ZodString>;
        scoreAfter: z.ZodNullable<z.ZodNumber>;
    }, z.core.$strip>, z.ZodObject<{
        action: z.ZodLiteral<"rollback-to">;
        targetFixId: z.ZodString;
        rolledBack: z.ZodArray<z.ZodString>;
        errors: z.ZodArray<z.ZodString>;
        scoreAfter: z.ZodNullable<z.ZodNumber>;
    }, z.core.$strip>], "action">;
}, z.core.$strip>;
export type ServerFixOutput = z.infer<typeof serverFixOutputSchema>;
export declare function handleServerFix(params: {
    server?: string;
    action?: "apply" | "rollback" | "history" | "rollback-all" | "rollback-to";
    dryRun?: boolean;
    rollbackId?: string;
    checks?: string[];
    category?: string;
    top?: number;
    target?: number;
    profile?: string;
    diff?: boolean;
    report?: boolean;
    force?: boolean;
}, mcpServer?: McpServer): Promise<McpResponse>;
//# sourceMappingURL=serverFix.d.ts.map