import type { FlowDecision, FlowPresentation } from './flow-guard-types.js'; export type FlowReason = 'protected_settings' | 'secret' | 'opaque_shell' | 'personal_data' | 'private_text' | 'unnamed_destination' | 'destructive_action' | 'secret_to_file' | 'paste_after_secret' | 'screen_action' | 'secret_tracking' | 'secret_fragment' | 'credential_egress' | 'payload_incomplete'; /** What `flowPre` decided and why, for an adapter that must resolve an `ask` without a person (the OpenCode plugin). * Filled only when a decision is returned; the decision itself, and the hook output built from it, are unchanged. */ export interface FlowPreDetail { reason?: FlowReason; sensitive?: boolean; } export declare function flowPre(input: Record, env?: NodeJS.ProcessEnv, presentation?: FlowPresentation, detail?: FlowPreDetail): FlowDecision | undefined; /** What the person answered when `wrap` asked through the client (presentation `elicit`): the one case where the * guard knows the outcome rather than inferring it. */ export declare function flowApproval(input: { session_id: string; tool_name: string; }, outcome: string, env?: NodeJS.ProcessEnv): void; export declare function flowScreenValidation(input: { session_id: string; tool_name: string; }, outcome: 'unchanged' | 'refused_without_approval' | 'refused_after_approval' | 'execution_uncertain' | 'atomic_committed' | 'atomic_refused', env?: NodeJS.ProcessEnv): void; //# sourceMappingURL=flow-guard-pre.d.ts.map