import type { ExecAsk, ExecSecurity, SystemRunApprovalPlan } from "../infra/exec-approvals.js"; export type RequestExecApprovalDecisionParams = { id: string; command?: string; commandArgv?: string[]; systemRunPlan?: SystemRunApprovalPlan; env?: Record; cwd: string | undefined; nodeId?: string; host: "gateway" | "node"; security: ExecSecurity; ask: ExecAsk; warningText?: string; agentId?: string; resolvedPath?: string; sessionKey?: string; turnSourceChannel?: string; turnSourceTo?: string; turnSourceAccountId?: string; turnSourceThreadId?: string | number; }; export type ExecApprovalRegistration = { id: string; expiresAtMs: number; finalDecision?: string | null; }; export declare function registerExecApprovalRequest(params: RequestExecApprovalDecisionParams): Promise; export declare function waitForExecApprovalDecision(id: string): Promise; export declare function resolveRegisteredExecApprovalDecision(params: { approvalId: string; preResolvedDecision: string | null | undefined; }): Promise; export declare function requestExecApprovalDecision(params: RequestExecApprovalDecisionParams): Promise; type HostExecApprovalParams = { approvalId: string; command?: string; commandArgv?: string[]; systemRunPlan?: SystemRunApprovalPlan; env?: Record; workdir: string | undefined; host: "gateway" | "node"; nodeId?: string; security: ExecSecurity; ask: ExecAsk; warningText?: string; agentId?: string; resolvedPath?: string; sessionKey?: string; turnSourceChannel?: string; turnSourceTo?: string; turnSourceAccountId?: string; turnSourceThreadId?: string | number; }; type ExecApprovalRequesterContext = { agentId?: string; sessionKey?: string; }; export declare function buildExecApprovalRequesterContext(params: ExecApprovalRequesterContext): { agentId?: string; sessionKey?: string; }; type ExecApprovalTurnSourceContext = { turnSourceChannel?: string; turnSourceTo?: string; turnSourceAccountId?: string; turnSourceThreadId?: string | number; }; export declare function buildExecApprovalTurnSourceContext(params: ExecApprovalTurnSourceContext): ExecApprovalTurnSourceContext; export declare function requestExecApprovalDecisionForHost(params: HostExecApprovalParams): Promise; export declare function registerExecApprovalRequestForHost(params: HostExecApprovalParams): Promise; export declare function registerExecApprovalRequestForHostOrThrow(params: HostExecApprovalParams): Promise; export {};