import { type JaitBackend } from "./types/thread.js"; export interface JaitBackendInstanceConfig { id: string; type: JaitBackend; name: string; baseUrl: string; apiKey?: string; model?: string; numCtx?: number; } export declare const JAIT_BACKEND_DEFAULT_URLS: Record; /** * Normalise a backend base URL so a bare host/IP (no scheme) still resolves. * * Users routinely paste an Ollama address as `192.168.1.50:11434` instead of * `http://192.168.1.50:11434`. `fetch("host:port/api/tags")` then fails URL * parsing and the instance silently ends up with an empty model list. If the * value already carries a scheme (`http`, `https`, …) it is left untouched. * Trailing slashes are also stripped so `new URL`/`/models` concatenation is * stable. */ export declare function normalizeJaitBackendBaseUrl(raw: string): string; export declare function parseJaitBackendInstances(raw: string | null | undefined): JaitBackendInstanceConfig[]; export declare function serializeJaitBackendInstances(instances: JaitBackendInstanceConfig[]): string; export declare function encodeJaitModelId(backend: JaitBackend, instanceId: string, model: string): string; export declare function decodeJaitModelId(value: string): { backend: JaitBackend; instanceId: string; model: string; } | null; //# sourceMappingURL=jait-backends.d.ts.map