UNPKG

histoire

Version:

A fast story book powered by Vite

17 lines • 962 B
import type { CaptureBrowserLease } from './types.js'; /** Builds an idempotent lease and reports any cleanup that cannot be confirmed. */ export declare function createCaptureBrowserLease(options: { /** Browser held until the caller has finished its capture. */ browser: CaptureBrowserLease['browser']; /** Candidate source that created the browser. */ source: CaptureBrowserLease['source']; /** Returns a healthy pooled browser after operation cleanup succeeds. */ releaseBrowser: () => Promise<unknown>; /** Closes a pooled browser when operation cleanup is uncertain. */ discardBrowser?: () => Promise<unknown>; /** Retains terminal cleanup failure in the owning setup manager. */ retainCleanupFailure: (error: unknown) => unknown; /** Clears the owner’s active lease after confirmed cleanup. */ onReleased: (release: () => Promise<void>) => void; }): CaptureBrowserLease; //# sourceMappingURL=lease.d.ts.map