import { CannonLoader, IPFSLoader } from '@usecannon/builder'; import { CliSettings } from './settings'; /** * @deprecated */ export declare class LocalLoader implements CannonLoader { dir: string; constructor(dir: string); getLabel(): string; read(url: string): Promise; put(misc: any): Promise; list(): Promise; remove(url: string): Promise; } declare enum LoaderAction { read = "read", local = "local", write = "write", repo = "repo" } export declare class CliLoader implements CannonLoader { currAction: LoaderAction; readIpfs?: IPFSLoader; writeIpfs?: IPFSLoader; repo: IPFSLoader; dir: string; constructor(opts: { readIpfs: IPFSLoader | undefined; writeIpfs: IPFSLoader | undefined; repoLoader: IPFSLoader; fileCacheDir: string; }); getLabel(): string; getCacheFilePath(url: string): string; put(misc: any): Promise; read(url: string): Promise; remove(url: string): Promise; list(): Promise; static getCacheHash(url: string): string; } export declare class IPFSLoaderWithRetries extends IPFSLoader { put(misc: any): Promise; read(url: string): Promise; } export declare function getMainLoader(cliSettings: CliSettings): { ipfs: CliLoader; file: LocalLoader; }; export {}; //# sourceMappingURL=loader.d.ts.map