import { type RouteCodexHealthProbeResult } from '../utils/http-health-probe.js'; export interface ServerInstanceInfo { id: string; baseUrl: string; host: string; port: number; configPath: string; status: 'online' | 'offline'; } export interface ProviderAuthView { id: string; protocol: string; transport: { baseUrl?: string; endpoint?: string; }; auth: { kind: 'apikey' | 'oauth' | 'none'; rawType?: string; apiKeySource?: 'inline' | 'secretRef' | 'env'; apiKeyPreview?: string; secretRef?: string; env?: string; tokenFile?: string; clientId?: string; tokenUrl?: string; deviceCodeUrl?: string; }; } export interface ServerAuthSnapshot { server: ServerInstanceInfo; providers: ProviderAuthView[]; } export type DetectLocalServerInstanceDetailedResult = { ok: true; server: ServerInstanceInfo; probe: RouteCodexHealthProbeResult; } | { ok: false; kind: 'config_error'; errorMessage: string; }; export declare function detectLocalServerInstanceDetailed(): Promise; export declare function detectLocalServerInstance(): Promise; export declare function buildServerAuthSnapshot(): Promise;