node-liblzma
Version:
NodeJS wrapper for liblzma
27 lines • 911 B
TypeScript
/**
* Shared TypeScript types for node-liblzma
*/
export interface LZMAOptions {
/** Integrity check type */
check?: number;
/** Compression preset level */
preset?: number;
/** Array of filters to use */
filters?: number[];
/** Compression mode */
mode?: number;
/** Number of threads for compression (encoding only) */
threads?: number;
/** Chunk size for processing */
chunkSize?: number;
/** Flush flag to use */
flushFlag?: number;
}
export type CompressionCallback = (error: Error | null, result?: Buffer) => void;
export type LZMAActionType = 0 | 1 | 2 | 3;
export type LZMAStatusType = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
export type CheckType = 0 | 1 | 4 | 10;
export type PresetType = 6 | 9;
export type FilterType = 0x21 | 0x03 | 0x04 | 0x06 | 0x07 | 0x08 | 0x09;
export type ModeType = 1 | 2;
//# sourceMappingURL=types.d.ts.map