/** * E2B Process Manager * * Implements SandboxProcessManager for E2B cloud sandboxes. * Wraps the E2B SDK's commands API (background mode, sendStdin, kill, list). */ import { ProcessHandle, SandboxProcessManager } from '@mastra/core/workspace'; import type { ProcessInfo, SpawnProcessOptions } from '@mastra/core/workspace'; import type { E2BSandbox } from './index.js'; /** * E2B implementation of SandboxProcessManager. * Uses the E2B SDK's commands.run() with background: true. */ export declare class E2BProcessManager extends SandboxProcessManager { spawn(command: string, options?: SpawnProcessOptions): Promise; /** * List processes by querying E2B's commands API. * E2B manages all state server-side — no local tracking needed. */ list(): Promise; /** * Get a handle to a process by PID. * Checks base class tracking first, then falls back to commands.connect() * for processes spawned externally or before reconnection. */ get(pid: string): Promise; } //# sourceMappingURL=process-manager.d.ts.map