import type { Classification } from './guard.js'; export interface PolicyReceipt { verdict: Classification['verdict']; reasons: string[]; authorized: boolean; approvalRequired: boolean; approved: boolean; } /** Observed evidence from one tool execution. Never model-authored. */ export interface ToolExecutionResult { stdout: string; stderr: string; exitCode: number; durationMs: number; artifactDigest: string; policyReceipt: PolicyReceipt; } export interface ToolExecutionRequest { command: string; classification: Classification; approved: boolean; } export interface ToolExecutor { execute(request: ToolExecutionRequest): Promise; } export interface NodeToolExecutorOptions { cwd: string; timeoutMs?: number; maxOutputBytes?: number; /** Minimal explicit environment. The parent environment is not inherited. */ env?: Record; digestExclude?: string[]; } export declare function digestWorkspace(root: string, excludes?: string[]): Promise; /** Real, bounded subprocess execution behind CommandGuard authorization. */ export declare class NodeToolExecutor implements ToolExecutor { private readonly cwd; private readonly timeoutMs; private readonly maxOutputBytes; private readonly env; private readonly excludes; constructor(options: NodeToolExecutorOptions); execute(request: ToolExecutionRequest): Promise; } export declare class UnavailableToolExecutor implements ToolExecutor { execute(request: ToolExecutionRequest): Promise; } //# sourceMappingURL=executor.d.ts.map