blockMapApi.d.ts 343 B

1234567891011121314
  1. export interface FileChunks {
  2. checksums: Array<string>;
  3. sizes: Array<number>;
  4. }
  5. export interface BlockMap {
  6. version: "1" | "2";
  7. files: Array<BlockMapFile>;
  8. }
  9. export interface BlockMapFile extends FileChunks {
  10. name: string;
  11. offset: number;
  12. }
  13. export declare function readEmbeddedBlockMapData(file: string): Promise<any>;