UNPKG

@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

21 lines • 709 B
//#region src/storage/FileSystem.d.ts export interface DownloadToFileOptions { verifyHash?: { algorithm: 'sha256'; hash: Uint8Array; }; } export 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 //# sourceMappingURL=FileSystem.d.mts.map