@credo-ts/core
Version:
<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1
22 lines • 741 B
text/typescript
//#region src/storage/FileSystem.d.ts
interface DownloadToFileOptions {
verifyHash?: {
algorithm: 'sha256';
hash: Uint8Array;
};
}
interface FileSystem {
readonly dataPath: string;
readonly cachePath: string;
readonly tempPath: string;
exists(path: string): Promise<boolean>;
createDirectory(path: string): Promise<void>;
copyFile(sourcePath: string, destinationPath: string): Promise<void>;
write(path: string, data: string): Promise<void>;
read(path: string): Promise<string>;
delete(path: string): Promise<void>;
downloadToFile(url: string, path: string, options?: DownloadToFileOptions): Promise<void>;
}
//#endregion
export { DownloadToFileOptions, FileSystem };
//# sourceMappingURL=FileSystem.d.mts.map