/** Default origin used by a local Ollama installation. */ export declare const DEFAULT_OLLAMA_BASE_URL = "http://localhost:11434"; /** * Normalizes an Ollama origin for use with `/api/*` endpoints. * * @param baseUrl - Ollama origin, optionally ending in `/` or `/api`. * @returns The origin without trailing slashes or a trailing `/api`. */ export declare function normalizeOllamaBaseUrl(baseUrl?: string): string; /** * Builds an absolute URL for an Ollama API endpoint. * * @param baseUrl - Ollama origin. Defaults to * {@link DEFAULT_OLLAMA_BASE_URL}. * @param path - Endpoint path beginning with `/api/`. * @returns An absolute endpoint URL. */ export declare function buildOllamaApiUrl(baseUrl: string | undefined, path: `/api/${string}`): string; /** * Indicates that a browser could not reach Ollama, commonly because its CORS * origin allowlist rejected the request. */ export declare class OllamaCorsError extends Error { /** * @param cause - Original network error. */ constructor(cause: unknown); } //# sourceMappingURL=utils.d.ts.map