import type { HttpClient } from "../core/http.js"; import type { CreateRuntimeRequest, UpdateRuntimeRequest, RuntimeResponse, RuntimeListResponse, SlugCheckResponse, ShellSessionRequest, ShellSessionResponse, OneclawResponse } from "../types.js"; /** * Runtimes resource — provision and manage compute environments * for agent code execution. */ export declare class RuntimesResource { private readonly http; constructor(http: HttpClient); /** Create a new runtime for an agent. */ create(data: CreateRuntimeRequest): Promise>; /** List all runtimes in the current organization. */ list(): Promise>; /** Fetch a single runtime by ID. */ get(runtimeId: string): Promise>; /** Update an existing runtime. */ update(runtimeId: string, data: UpdateRuntimeRequest): Promise>; /** Delete a runtime permanently. */ delete(runtimeId: string): Promise>; /** Start a stopped runtime. */ start(runtimeId: string): Promise>; /** Stop a running runtime. */ stop(runtimeId: string): Promise>; /** Check if a slug is available for hosting. */ checkSlug(slug: string): Promise>; /** Fetch recent container logs (`entries` from Cloud Logging / Docker). */ logs(runtimeId: string, opts?: { tail?: number; }): Promise; }>>; /** * Create an interactive shell WebSocket session (human-only, step-up auth). * Runtime must have `shell_access_enabled` and typically be running. */ createShellSession(runtimeId: string, data?: ShellSessionRequest): Promise>; /** Begin WebAuthn passkey assertion for shell step-up auth. */ beginShellPasskey(runtimeId: string): Promise>>; /** * Chat with the agent inside a runtime (hermes / openclaw / openclaude). * Proxies to the container's OpenAI-compatible chat bridge. * For SSE, pass `stream: true` and use a raw fetch with Accept: text/event-stream * (this helper returns the parsed JSON body for non-streaming calls). */ chat(runtimeId: string, data: { message?: string; messages?: Array>; model?: string; provider?: string; stream?: boolean; }): Promise>>; } //# sourceMappingURL=runtimes.d.ts.map