import { BaseProvider, type ProviderInfo } from './base.js'; import type { CompletionRequest } from '../types/messages.js'; import type { NexusResponse, NexusStream } from '../types/response.js'; import type { OllamaProviderConfig } from '../types/config.js'; /** Ollama, for models running on this machine or a local server. */ export declare class OllamaProvider extends BaseProvider { /** Always `ollama`, local. */ readonly info: ProviderInfo; private client?; private config; constructor(config: OllamaProviderConfig); private getClient; private formatMessages; private extractModel; /** Runs one completion. */ complete(request: CompletionRequest): Promise; /** Streams one completion. */ stream(request: CompletionRequest): NexusStream; /** Shared sampling options so buffered and streamed calls cannot drift apart: a stream stops where a call does. */ private samplingOptions; private formatResponseFormat; }