import { Buffer } from "../utils/buffer.js";

//#region src/storage/FileSystem.d.ts
interface DownloadToFileOptions {
  verifyHash?: {
    algorithm: 'sha256';
    hash: Buffer;
  };
}
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.ts.map