import type { ResolvedBrowserProfile } from "./config.js"; import type { BrowserServerState, ContextOptions, ProfileRuntimeState } from "./server-context.types.js"; type AvailabilityDeps = { opts: ContextOptions; profile: ResolvedBrowserProfile; state: () => BrowserServerState; getProfileState: () => ProfileRuntimeState; setProfileRunning: (running: ProfileRuntimeState["running"]) => void; }; type AvailabilityOps = { isHttpReachable: (timeoutMs?: number) => Promise; isReachable: (timeoutMs?: number) => Promise; ensureBrowserAvailable: () => Promise; stopRunningBrowser: () => Promise<{ stopped: boolean; }>; }; export declare function createProfileAvailability({ opts, profile, state, getProfileState, setProfileRunning, }: AvailabilityDeps): AvailabilityOps; export {};