/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { ModelSearchResultItem } from "../task/ModelSearchTask"; export interface HfModelEntry { id: string; modelId: string; pipeline_tag?: string; library_name?: string; likes: number; downloads: number; tags?: string[]; siblings?: Array<{ rfilename: string; }>; } export declare function formatDownloads(n: number): string; /** * Map an HF model entry to a provider-specific config object. */ export declare function mapHfProviderConfig(entry: HfModelEntry, provider: string): Record; /** * Map an HF model entry to a ModelSearchResultItem. */ export declare function mapHfModelResult(entry: HfModelEntry, provider: string): ModelSearchResultItem; /** * Search HuggingFace models API. Returns all results (limit=500, no pagination). * An empty `query` lists top models by sort order (no text filter). */ export declare function searchHfModels(query: string, extraParams?: Record, expandFields?: string[], signal?: AbortSignal, credentialKey?: string): Promise; //# sourceMappingURL=HfModelSearch.d.ts.map