import { AgentRef } from './aiApi'; /** Gate: allow remote shell + script task execution on the agent. */ export declare const REMOTE_SHELL_TASK_GATE_KEY = "security:vibecontrols_allow_remote_shell_task"; /** Gate: allow remote file write + delete tasks on the agent. */ export declare const REMOTE_FILE_TASK_GATE_KEY = "security:vibecontrols_allow_remote_file_task"; /** * Stable backend errorCode (ActionExecution.errorCode) surfaced when a * command/script run is rejected because the agent's remote-task gate is off. */ export declare const REMOTE_EXECUTION_DISABLED_CODE = "REMOTE_EXECUTION_DISABLED"; export interface EnableRemoteTaskOptions { /** Enable shell + script execution (default true). */ shell?: boolean; /** Also enable file write/delete tasks (default false — opt-in). */ file?: boolean; } /** * Enable remote task execution on an agent by writing the gate config key(s). * Reuses the same `setAgentConfigValue` path as the Security tab — no new or * relaxed backend surface, so it inherits the existing update:agent permission. */ export declare function enableRemoteTaskExecution(agent: AgentRef, options?: EnableRemoteTaskOptions): Promise; /** * True when an execution result / error indicates the agent's remote-task gate * is off. Prefers the structured backend errorCode; falls back to scanning the * (stable) human output string for surfaces whose result type does not carry * the code (e.g. VibeDeck button execution returns no errorCode field). */ export declare function isRemoteTaskDeniedError(input: unknown): boolean;