import { h as ModelAdapterFactory } from '../types-CLRSaArX.js'; /** * Adapter for onnxruntime-web. * * @remarks * Provides low-level access to ONNX model inference. * Use for custom models not supported by transformers.js or web-llm. * Input must be pre-processed `OrtTensor` instances. * * @example * ```ts * import { createPool } from 'inferis-ml'; * import { onnxAdapter } from 'inferis-ml/adapters/onnx'; * import * as ort from 'onnxruntime-web'; * * const pool = await createPool({ adapter: onnxAdapter() }); * const model = await pool.load('custom', { * model: 'https://example.com/model.onnx', * }); * * const input = new ort.Tensor('float32', data, [1, 3, 224, 224]); * const output = await model.run({ feeds: { input } }); * ``` */ declare function onnxAdapter(): ModelAdapterFactory; export { onnxAdapter };