import { h as ModelAdapterFactory } from '../types-CLRSaArX.cjs'; /** * Adapter for @mlc-ai/web-llm. * * @remarks * Optimized for LLM text generation with WebGPU acceleration. * Streaming is natively supported via the OpenAI-compatible chat API. * * @example * ```ts * import { createPool } from 'inferis-ml'; * import { webLlmAdapter } from 'inferis-ml/adapters/web-llm'; * * const pool = await createPool({ * adapter: webLlmAdapter(), * defaultDevice: 'webgpu', * maxWorkers: 1, * }); * * const llm = await pool.load('text-generation', { * model: 'Llama-3.1-8B-Instruct-q4f32_1-MLC', * }); * * const stream = llm.stream({ messages: [{ role: 'user', content: 'Hello' }] }); * for await (const token of stream) { ... } * ``` */ declare function webLlmAdapter(): ModelAdapterFactory; export { webLlmAdapter };