/** Error codes for server-side policy rejections. * * These are returned by the server as structured 403 JSON responses. * Use a switch statement on `code` to display translated or custom messages. */ export type PolicyErrorCode = 'USER_NOT_REGISTERED' | 'USER_NOT_ACCEPTED' | 'NO_SEATS_AVAILABLE' | 'USER_DEACTIVATED' | 'WEBHOOK_ERROR'; export interface PolicyErrorBody { code: PolicyErrorCode; message: string; } /** Thrown when the server rejects a user due to a policy rule. * * Unlike a generic 403, this error carries a machine-readable `code` so that * the addon can convert it into a DXCUserInteraction challenge rather than * simply throwing. */ export declare class PolicyRejectionError extends Error { readonly code: PolicyErrorCode; constructor(body: PolicyErrorBody); get name(): string; } /** Returns true when a plain fetch Response contains a structured PolicyError body. */ export declare function isPolicyErrorBody(value: unknown): value is PolicyErrorBody;