import type { E2BDesktopSandbox } from "./e2b-desktop-launch.js"; /** Runtime diagnostic only; no provider errors, file paths, or image contents are retained. */ export declare function desktopScreenshotCleanupFailures(desktop: object): number; /** * @e2b/desktop 2.3.3 screenshot() awaits capture and files.read(path), then discards the * files.remove(path) promise. A removal that races sandbox teardown can therefore crash Node * AFTER valid bytes were returned. Installed-SDK conformance tests pin that behavior (#662). * * Observe only removal of a file successfully read within THIS screenshot invocation. The * exact path comes from the SDK, not a guessed filename pattern. AsyncLocalStorage isolates * concurrent screenshots and unrelated file operations without changing SDK method receivers. * The ORIGINAL removal promise is returned: an SDK version (or caller) that awaits it still * receives the original rejection. No process-wide rejection handler or filesystem retry. */ export declare function protectDesktopScreenshotCleanup(desktop: T): T;