/** * ollama provider — local ollama daemon at `endpoint` (default * http://localhost:11434). Uses ollama's `/api/chat` endpoint which is * OpenAI-compatible at the message-shape level. Pure fetch + JSON — * no SDK, per A4 prohibition on heavy deps. */ import type { ReviewerProviderConfig } from '../reviewer-config.js'; export type ProviderCallInput = { provider: ReviewerProviderConfig; prompt: string; /** Caller injects fetch for testability. Defaults to globalThis.fetch. */ fetchImpl?: typeof fetch | undefined; /** AbortSignal for timeout control (callers should set one). */ signal?: AbortSignal | undefined; }; export type ProviderCallResult = { ok: true; modelId: string; text: string; latencyMs: number; } | { ok: false; error: string; latencyMs: number; }; export declare function callOllama(input: ProviderCallInput): Promise;