UNPKG

maxcso

Version:

💿 maxcso binaries and wrapper for Node.js.

29 lines (28 loc) • 836 B
import { MaxcsoBinOptions } from './maxcsoBin.js'; export interface UncompressedCrc32Options extends MaxcsoBinOptions { inputFilename: string; } export declare enum CsoFileType { CSO = "CISO", DAX = "DAX", ZSO = "ZISO" } export interface CsoInfo { fileType: CsoFileType; uncompressedSize: bigint; blockSize: number; version: number; indexAlignment: number; } declare const _default: { /** * Given a compressed CSO/ZSO/DAX file, get its uncompressed ISO's CRC32. This is fast/cheap to * calculate. */ uncompressedCrc32(options: UncompressedCrc32Options, attempt?: number): Promise<string>; /** * Given a compressed CSO/ZSO/DAX file, get the information stored in its file header. */ header(inputFilename: string): Promise<CsoInfo>; }; export default _default;