import type { PermissionReviewTranscript } from "./PermissionReviewAgent.js"; export type AutoPermissionRisk = "low" | "medium" | "high" | "critical"; export type AutoPermissionUserAuthorization = "unknown" | "low" | "medium" | "high"; /** * Why an action was refused, which decides what the agent is told to do next. * * A reviewed refusal is a judgement about the action itself, so the agent must not route around * it. A refusal the reviewer never actually made carries no such judgement, so the agent is told * the action is merely unproven rather than unsafe. */ export type AutoPermissionDenialKind = "rejected" | "timed_out" | "unavailable"; export interface AutoPermissionReview { decision: "allow" | "deny"; denialKind?: AutoPermissionDenialKind; reason: string; risk: AutoPermissionRisk; userAuthorization: AutoPermissionUserAuthorization; /** What the reviewer did to reach this verdict, and what that cost. */ transcript?: PermissionReviewTranscript; } export declare function parseAutoPermissionReview(text: string): AutoPermissionReview | undefined;