import { RemoteSandbox } from '@struktoai/mirage-core/runtime/sandbox/base'; import type { RunResult, RuntimeOptions } from '@struktoai/mirage-core/runtime/types'; import { type E2BConfig } from './config.ts'; import type * as e2bSdk from 'e2b'; export type E2bSdk = typeof e2bSdk; /** * An E2B sandbox the user runs as a whole-line runtime. * * You create the sandbox yourself (`e2b sandbox spawn` or the SDK); * mirage only connects by `sandboxId` and execs lines. `apiKey` falls * back to E2B_API_KEY. E2B's exec reports stdout and stderr * separately, so both stream back real; it takes no stdin, so piped * bytes are uploaded and redirected in. */ export declare class E2BRuntime extends RemoteSandbox { readonly name = "e2b"; private sdk; private sandbox; constructor(options?: RuntimeOptions | Record); protected loadSdk(): Promise; private ensureSdk; private apiParams; connect(): Promise; execLine(line: string, stdin: Uint8Array | null, env: Record, cwd: string): Promise; private upload; } //# sourceMappingURL=runtime.d.ts.map