import type { E2BDesktopSandbox } from "./e2b-desktop-launch.js"; import { type DesktopResources } from "./pricing.js"; export type DesktopResourceObservation = { resources: DesktopResources; source: "e2b.getInfo"; } | { reason: "metadata_unavailable" | "metadata_invalid" | "metadata_timeout"; }; /** Called once after the caller owns and journals the handle. Never throws or delays cleanup * beyond the bounded wait. Persist only resource quantities, never the raw info/connection. */ export declare function observeDesktopResources(desktop: Pick, timeoutMs?: number): Promise;