import { LLMModel } from "@infersec/definitions";
export type ModelDownloadProgressUpdate = {
    file: {
        bytes: number;
        name: string;
        total: number;
    };
    total: {
        completed: number;
        total: number;
    };
};
export declare function downloadModelViaHuggingFace({ format, huggingFaceToken, modelSlug: rawModelSlug, onProgress, progressFilePath, targetDirectory }: {
    format: LLMModel["format"];
    huggingFaceToken: string | null | undefined;
    modelSlug: string;
    onProgress?: (update: ModelDownloadProgressUpdate) => void;
    progressFilePath: string;
    targetDirectory: string;
}): Promise<void>;
