export interface SandboxConfig { memoryLimitBytes: number; maxStackSizeBytes: number; timeoutMs: number; maxConcurrentCalls: number; maxConcurrentExecutions: number; mutationSettlementGraceMs: number; } export declare const CODE_ACT_MUTATION_COMMITTED_AFTER_ABORT = "CODE_ACT_MUTATION_COMMITTED_AFTER_ABORT"; export declare const CODE_ACT_MUTATION_OUTCOME_UNKNOWN = "CODE_ACT_MUTATION_OUTCOME_UNKNOWN"; export type CodeActTerminalMutationCode = typeof CODE_ACT_MUTATION_COMMITTED_AFTER_ABORT | typeof CODE_ACT_MUTATION_OUTCOME_UNKNOWN; export interface ExecutionResult { success: boolean; value?: unknown; error?: { name: string; message: string; stack?: string; code?: CodeActTerminalMutationCode; retryable?: boolean; }; logs: string[]; metrics: { durationMs: number; hostCallCount: number; memoryUsedBytes: number; }; } export interface SandboxExecutionOptions { /** Cancellation for the owning model turn or HTTP request. */ signal?: AbortSignal; } export type HostFunction = (...args: unknown[]) => Promise; export interface HostFunctionContext { signal: AbortSignal; deadlineMs: number; } export type AbortableHostFunction = (context: HostFunctionContext, ...args: unknown[]) => Promise; export interface HostFunctionRegistrationOptions { /** Keep the module slot for the bounded mutation settlement grace after abort. */ settleOnAbort?: boolean; } export interface FunctionDescriptor { name: string; params: ParamDescriptor[]; returnType: string; description: string; category: 'memory' | 'file' | 'communication' | 'os' | 'cron' | 'mcp' | 'system'; } export interface ParamDescriptor { name: string; type: string; required: boolean; description?: string; } export declare const DEFAULT_SANDBOX_CONFIG: SandboxConfig; //# sourceMappingURL=types.d.ts.map