import { type UnattendedBlockMode } from './flow-guard-unattended.js'; export { patchFiles, refuses } from './flow-guard-unattended.js'; export type OpenCodeBlockMode = UnattendedBlockMode; export interface OpenCodeGuardOptions { /** Which decisions refuse the call: see the module comment. Env `WARDEN_OPENCODE_BLOCK`. */ block?: OpenCodeBlockMode; /** MCP server names as configured in OpenCode; tools are named `_`. Read from the config hook too. */ mcpServers?: string[]; /** Environment variables blanked for shell commands. Env `WARDEN_OPENCODE_STRIP_ENV` (comma-separated). */ stripEnv?: string[]; env?: NodeJS.ProcessEnv; } export interface GuardCall { name: string; input: Record; } /** One OpenCode call as the guard's vocabulary: zero, one or (for a multi-file patch) several calls. */ export declare function guardCalls(tool: string, rawArgs: unknown, mcpServers: readonly string[]): GuardCall[]; type Hooks = Record Promise>; interface SessionClient { session?: { get?: (req: { path: { id: string; }; }) => Promise; }; } /** The plugin function OpenCode calls with its context. Export exactly this from a file in OpenCode's plugin folder. */ export declare function createWardenPlugin(options?: OpenCodeGuardOptions): (ctx?: { directory?: string; worktree?: string; client?: SessionClient; }) => Promise; //# sourceMappingURL=opencode-plugin.d.ts.map