import type { SessionContext } from "#context/session-context.js"; import type { RuntimeSandboxSession, SandboxSession } from "#shared/sandbox-session.js"; /** * Builds a {@link SessionContext} from the active ALS scope. * * Must be called inside a harness step (active `contextStorage.run`). * Throws when called outside an ALS scope. */ export declare function buildCallbackContext(): SessionContext; export declare function withRuntimeSandboxLifecycle(sandbox: Session, deleteSandbox: RuntimeSandboxSession["delete"], stop: () => Promise): Session & Pick;