/** * LLM adapter factory with type guards */ import type { GetLLMOptions, LLMAdapter } from './types.js'; /** * Create an LLM adapter * * Uses lazy loading to only import the requested adapter. * * @example * ```ts * // WebLLM (default) * const llm = await getLLM(); * * // With specific model * const llm = await getLLM({ defaultModel: 'Llama-3.2-1B-Instruct-q4f16_1-MLC' }); * ``` */ export declare function getLLM(options?: GetLLMOptions): Promise; /** * Auto-detect and create the best available LLM adapter * * Selection priority: * 1. WebLLM with WebGPU (best performance) * 2. Transformers.js as fallback * * @throws If no LLM adapter is available */ export declare function getLLMAuto(options?: Partial>): Promise; /** * Check if a specific LLM backend is available */ export declare function isLLMAvailable(type: 'webllm' | 'transformers-llm'): boolean; /** * Check if WebGPU is available for accelerated inference */ export declare function hasWebGPU(): boolean; //# sourceMappingURL=factory.d.ts.map