import type { DoctorMemoryRepairPreviewAction, DoctorMemoryRepairPreviewPayload } from "./inventory.js";
export type DoctorMemoryRepairExecutionSurface = "cli" | "dashboard-admin" | "chat" | "channel" | "plugin";
export type DoctorMemoryRepairExecutionScope = "none" | "operator.read" | "operator.write" | "operator.admin";
export type DoctorMemoryRepairExecutionConfirmation = "none" | "cli-yes" | "confirmation-token";
export type DoctorMemoryRepairExecutionPlan = {
    backup: "none" | "planned";
    audit: "none" | "planned";
    rollback: "none" | "manual" | "automatic";
};
export type DoctorMemoryRepairExecutionPolicyInput = {
    preview: DoctorMemoryRepairPreviewPayload;
    proposalIds?: string[];
    acceptedPreviewFingerprint?: string;
    surface: DoctorMemoryRepairExecutionSurface;
    operatorScope: DoctorMemoryRepairExecutionScope;
    confirmation: DoctorMemoryRepairExecutionConfirmation;
    plan: DoctorMemoryRepairExecutionPlan;
    allowedRoots: string[];
};
export type DoctorMemoryRepairExecutionPolicyDecision = {
    ok: boolean;
    previewFingerprint: string;
    allowed: Array<{
        id: string;
        action: DoctorMemoryRepairPreviewAction;
        targetPath?: string;
    }>;
    blocked: Array<{
        id: string;
        action?: DoctorMemoryRepairPreviewAction;
        reasons: string[];
    }>;
    reasons: string[];
};
export declare function createMemoryRepairPreviewFingerprint(preview: DoctorMemoryRepairPreviewPayload): string;
export declare function evaluateMemoryRepairExecutionPolicy(input: DoctorMemoryRepairExecutionPolicyInput): DoctorMemoryRepairExecutionPolicyDecision;
