import type { AgentAdapter } from "./adapters/base.js"; export type CheckStatus = "ok" | "warn" | "fail"; export interface Check { name: string; status: CheckStatus; detail: string; } export type DoctorExec = (cmd: string, args: string[]) => Promise<{ status: number; stdout: string; }>; export interface DoctorDeps { gateway: string; keySource: string; key?: string; adapters: AgentAdapter[]; fetchFn: typeof fetch; exec: DoctorExec; } export interface DoctorResult { checks: Check[]; report: string; exitCode: number; } export declare function resolveKeySource(saved?: string): string; export declare function runDoctor(deps: DoctorDeps): Promise; export declare function defaultDoctorDeps(opts: { gateway: string; key: string; saved?: string; }): DoctorDeps;