import { type Options as KYOptions } from 'ky'; import { type PartialDeep } from 'type-fest'; import { AbstractModel, type ModelArgs } from './model.js'; import { type Model } from './types.js'; import { type Prettify } from './utils/helpers.js'; export type SparseVectorModelArgs = Prettify, 'client'> & { serviceUrl?: string; }>; export type PartialSparseVectorModelArgs = Prettify>, 'params'>> & Partial>, 'params'>>>; export declare class SparseVectorModel extends AbstractModel { modelType: "sparse-vector"; modelProvider: "custom"; serviceUrl: string; constructor(args: SparseVectorModelArgs); protected runModel({ requestOpts: _, ...params }: Model.SparseVector.Run & Model.SparseVector.Config, context: CustomCtx): Promise; protected runSingle(params: { input: string; model: string; requestOpts?: { headers?: KYOptions['headers']; }; }, context: CustomCtx): Promise<{ vector: Model.SparseVector.Vector; tokens: { prompt: number; completion: number; total: number; }; }>; /** Clone the model and merge/override the given properties. */ extend(args?: PartialSparseVectorModelArgs): this; }