import { AsyncZippable, Unzipped } from 'fflate'; import { BaseEvents, CachedEvents, MinimalEvents } from '@tornado/core'; export declare function existsAsync(fileOrDir: string): Promise; export declare function zipAsync(file: AsyncZippable): Promise; export declare function unzipAsync(data: Uint8Array): Promise; export declare function saveUserFile({ fileName, userDirectory, dataString, lastBlock, }: { fileName: string; userDirectory: string; dataString: string; lastBlock?: number; }): Promise; export declare function saveLastBlock({ fileName, userDirectory, lastBlock, }: { fileName: string; userDirectory: string; lastBlock: number; }): Promise; export declare function loadLastBlock({ name, directory }: { name: string; directory: string; }): Promise; export declare function loadSavedEvents({ name, userDirectory, }: { name: string; userDirectory: string; }): Promise>; export declare function download({ name, cacheDirectory }: { name: string; cacheDirectory: string; }): Promise; export declare function loadCachedEvents({ name, cacheDirectory, deployedBlock, }: { name: string; cacheDirectory: string; deployedBlock: number; }): Promise>;