import type { E2bRuntime } from "../../poe-code-config/dist/index.js";
import { type LogStreamFs, type OpenSpec, type OpenedEnv } from "../../agent-harness-tools/dist/index.js";
import { type E2bSandbox } from "./sdk.js";
interface DetachedJobContext {
    id: string;
    tool: string;
    argv: string[];
}
export interface E2bOpenedEnv extends OpenedEnv {
    fs: LogStreamFs;
    setDetachedJobContext(context: DetachedJobContext): void;
}
export declare function createOpenedE2bEnv(input: {
    sandbox: E2bSandbox;
    spec: OpenSpec;
    runtime: E2bRuntime;
    reattachContext?: Record<string, unknown>;
}): E2bOpenedEnv;
export {};
