import { type HostAdapter } from "./host-adapters/registry.js"; import { type PreflightDiagnostic, type PreflightFunctionOverrides } from "./lib/preflight.js"; declare function parsePositiveIntegerEnv(value: string | undefined, defaultValue: number): number; /** * Dispatches setup and doctor commands for host inventory and readiness checks. */ export declare function runSetup(args: string[], projectRoot?: string): Promise; declare function hasUnknownFlagsForSetupCommand(command: string, rest: string[]): boolean; /** Optional preflight hooks used to make setup-doctor tests deterministic. */ export type AdapterPreflightFunctions = PreflightFunctionOverrides; declare function runAdapterPreflightWithTimeout(adapter: HostAdapter, adapterTimeoutMs: number, projectRoot?: string, cumulativeSignal?: AbortSignal, preflight?: AdapterPreflightFunctions): Promise; declare function isAdapterReady(diagnostics: readonly PreflightDiagnostic[]): boolean; declare function formatLifecycleHost(adapter: HostAdapter): string; declare function runDoctor(args: string[], projectRoot: string | undefined, options?: { preflightRunner?: typeof runAdapterPreflightWithTimeout; preflight?: AdapterPreflightFunctions; cumulativeSignal?: AbortSignal; }): Promise; /** Exposes setup-doctor helpers for focused tests. */ export declare const setupInternals: { DOCTOR_ADAPTER_TIMEOUT_MS: number; hasUnknownFlagsForSetupCommand: typeof hasUnknownFlagsForSetupCommand; parsePositiveIntegerEnv: typeof parsePositiveIntegerEnv; runAdapterPreflightWithTimeout: typeof runAdapterPreflightWithTimeout; runDoctor: typeof runDoctor; isAdapterReady: typeof isAdapterReady; formatLifecycleHost: typeof formatLifecycleHost; runDoctorWithAdapters(adapters: HostAdapter[], adapterTimeoutMs: number, projectRoot?: string, cumulativeTimeoutMs?: number, preflightRunner?: typeof runAdapterPreflightWithTimeout | undefined, cumulativeSignal?: AbortSignal | undefined): Promise<{ hasErrors: boolean; results: Array<{ adapterId: string; diagnostics: PreflightDiagnostic[]; }>; }>; }; export {};