/** * Shared by the adapters for agents that run with nobody at the keyboard (OpenCode, Codex): the Claude Code hook * may answer `ask`, and such a runtime has no one to ask. `block` decides what an `ask` becomes. * * - `data` (default): refuse what involves data — a known secret, a credential boundary, private text or personal * data in the arguments, a short credential fragment, an incomplete payload check, a change to the guard's own * settings — and every decision whose payload is sensitive, whatever the first reason. Calls that only act after * outside text (opaque shell code, an unnamed destination, a destructive command, a GUI action) run and are * logged: an unattended agent's work is reading outside text and then reporting, and a network allowlist or a * sandbox has to bound where it can act. * - `all`: refuse everything the Claude Code hook would ask about. * * Node built-ins and flow-guard parts only: the plugins copy this file next to their scripts. */ import type { FlowPreDetail, FlowReason } from './flow-guard-pre.js'; export type UnattendedBlockMode = 'data' | 'all'; /** Reasons that are about data, never only about an action. */ export declare const DATA_REASONS: ReadonlySet; /** Whether an unattended run must refuse this decision. */ export declare function refuses(decision: { permissionDecision: 'ask' | 'deny'; }, detail: FlowPreDetail, block: UnattendedBlockMode): boolean; /** `data` or `all` from an environment value; anything else is undefined. */ export declare function blockMode(value: string | undefined): UnattendedBlockMode | undefined; /** File paths an apply_patch text adds, updates, moves or deletes. */ export declare function patchFiles(patch: string): string[]; //# sourceMappingURL=flow-guard-unattended.d.ts.map