import { Decision, Verb } from "./PolicyTypes.js"; export interface PolicyRefusalError extends Error { readonly decision: Decision; } /** True when `value` is a refusal thrown by ANY copy of this library. */ export declare function isPolicyRefusal(value: unknown): value is PolicyRefusalError; /** * Builds the error thrown when an operation is refused. * * The message states what was needed and what to do about it. It deliberately does NOT * name an MCP tool parameter: on that surface the caller is the model, and a refusal * that advertises its own escape hatch just teaches the model to set it and retry. * The CLI remediation names its flags, because there a human typed the command. */ export declare function policyRefusal(decision: Decision): PolicyRefusalError; /** Convenience for the common single-verb refusal. */ export declare function refusalFor(verb: Verb, decidingLayer: string, remediation?: string): PolicyRefusalError;