react-native-executorch
Version:
An easy way to run AI models in react native with ExecuTorch
17 lines • 883 B
TypeScript
import { ResourceSource } from '../types/common';
export declare class ResourceFetcher {
static fetch(source: ResourceSource, callback?: (downloadProgress: number) => void): Promise<string>;
static fetchMultipleResources(callback?: (downloadProgress: number) => void, ...sources: ResourceSource[]): Promise<string[]>;
static deleteMultipleResources(...sources: ResourceSource[]): Promise<void>;
private static calculateDownloadProgress;
static listDownloadedFiles(): Promise<string[]>;
static listDownloadedModels(): Promise<string[]>;
private static handleObject;
private static getFilenameFromUri;
private static removeFilePrefix;
private static hashObject;
private static triggerHuggingFaceDownloadCounter;
private static createDirectoryIfNoExists;
private static checkFileExists;
}
//# sourceMappingURL=ResourceFetcher.d.ts.map