import type { AgentToolResult } from "@mariozechner/pi-agent-core"; import { type ExecAsk, type ExecSecurity } from "../infra/exec-approvals.js"; import type { ExecToolDetails } from "./bash-tools.exec-types.js"; export type ProcessGatewayAllowlistParams = { command: string; workdir: string; env: Record; pty: boolean; timeoutSec?: number; defaultTimeoutSec: number; security: ExecSecurity; ask: ExecAsk; safeBins: Set; agentId?: string; sessionKey?: string; scopeKey?: string; warnings: string[]; notifySessionKey?: string; approvalRunningNoticeMs: number; maxOutput: number; pendingMaxOutput: number; trustedSafeBinDirs?: ReadonlySet; }; export type ProcessGatewayAllowlistResult = { execCommandOverride?: string; pendingResult?: AgentToolResult; }; export declare function processGatewayAllowlist(params: ProcessGatewayAllowlistParams): Promise;