import { type ChildProcess } from "node:child_process"; import { type PresenceConfig } from "../shared/config.js"; export type SpawnLike = (command: string, args: readonly string[], options: { cwd: string; detached: boolean; stdio: "ignore"; env: NodeJS.ProcessEnv; }) => Pick; interface HelperAutostartDeps { fetchImpl?: typeof fetch; spawnImpl?: SpawnLike; helperEntrypoint?: string; helperCwd?: string; processExecPath?: string; fileExists?: (path: string) => boolean; healthcheckTimeoutMs?: number; startupTimeoutMs?: number; pollIntervalMs?: number; debugLogging?: boolean; } export declare function ensureHelperRunning(config?: Pick, deps?: HelperAutostartDeps): Promise; export declare function isHelperReachable(config?: Pick, fetchImpl?: typeof fetch, timeoutMs?: number): Promise; export declare function isHelperUnavailableError(error: unknown): boolean; export declare function resetHelperAutostartForTests(): void; export {};