/** Short ceiling so the probe (and other CLI-side ollama fetches) never stall a command. */ export declare const DEFAULT_PROBE_TIMEOUT_MS = 400; export interface OllamaProbeResult { reachable: boolean; } /** * Build the discoverability hint shown by doctor/init when a local LLM server * is reachable but no LLM is configured. Returns null (no hint) when an LLM is * already configured — discovery only, never a nag — or when no server answers. * Never auto-enables anything; it only tells the user the keyless lever exists. */ export declare function maybeOllamaHint(state: { reachable: boolean; llmConfigured: boolean; baseUrl: string; }): string | null; /** * Resolve the base URL the hint should probe + suggest. Env `WIGOLO_LLM_BASE_URL` * wins; otherwise the canonical local server. Mirrors slice-2's resolution order * for the env layer (config.json `llmBaseUrl` is folded in by callers via * getConfig().llmBaseUrl, which already layers env > config > default). */ export declare function resolveProbeBaseUrl(env?: Record): string; /** * Probe `{baseUrl}/api/tags` with a short timeout. Returns `{ reachable }` and * NEVER throws — any error (connection refused, timeout, parse) resolves to * `reachable: false`. The AbortSignal guarantees the call cannot outlive * `timeoutMs`, so a hung server cannot stall the caller. * * `fetchImpl` is injected for testability; defaults to global fetch. */ export declare function probeOllama(baseUrl: string, fetchImpl?: typeof fetch, timeoutMs?: number): Promise; //# sourceMappingURL=ollama-probe.d.ts.map