import type { HubFile } from "./hubClient.js"; /** Which files of a diffusers repo to download. A diffusers repo often holds * more than the pipeline reads: a single-file copy of the transformer at * the top (17.8 GB for Chroma1-HD), `.bin` copies of each weight, fp16 * variants, and README images. The pipeline reads `model_index.json` and * the component folders it names, and Agency's image server loads only * `.safetensors` weights. */ export declare const MODEL_INDEX = "model_index.json"; export declare function hasModelIndex(files: HubFile[]): boolean; /** The component folders a model_index.json names: every key that does not * start with `_` and names a library and class. `[null, null]` is an empty * slot with no folder. */ export declare function componentFolders(modelIndex: unknown): string[]; /** The files to download: `model_index.json`, and the files directly inside * each named component folder, keeping only `.safetensors` weights with no * variant infix. Throws, naming the component, when a folder has weights * but none of them are `.safetensors`, since the server could never load * it. */ export declare function diffusersFiles(repo: string, files: HubFile[], modelIndex: unknown): HubFile[];