import { h as ModelAdapterFactory } from '../types-CLRSaArX.cjs'; /** * Adapter for @huggingface/transformers v3+. * * @remarks * The adapter is instantiated INSIDE the worker via `create()`. * The heavy `@huggingface/transformers` library is dynamically imported * inside the worker, keeping the main thread bundle lightweight. * * @example * ```ts * import { createPool } from 'inferis-ml'; * import { transformersAdapter } from 'inferis-ml/adapters/transformers'; * * const pool = await createPool({ adapter: transformersAdapter() }); * const model = await pool.load('feature-extraction', { * model: 'mixedbread-ai/mxbai-embed-xsmall-v1', * }); * ``` */ declare function transformersAdapter(): ModelAdapterFactory; /** * Recursively converts Tensor class instances and typed arrays to plain * structured-clone-compatible objects so they can cross the worker boundary. */ declare function serializeOutput(value: unknown): unknown; export { serializeOutput, transformersAdapter };