/** * Inline WASM entry point for node-liblzma. * * This module embeds the WASM binary as a base64 string, enabling * zero-config usage without needing to configure bundler WASM loading. * * Usage: * import { xzAsync, unxzAsync } from 'node-liblzma/inline'; * * Unlike the standard WASM entry point, initialization is NOT automatic. * Call `ensureInlineInit()` once before using any exported function. * * Trade-off: Larger JS bundle (~70KB base64 vs ~52KB binary fetch) * but no external file to serve and no fetch() required. */ import type { LZMAModule } from './wasm/types.js'; /** * Ensures the WASM module is initialized with the inline binary. * Must be called once before using any other exported function. */ declare function ensureInlineInit(): Promise; export { ensureInlineInit }; export { LZMAError } from './errors.js'; export { getModule, initModule, resetModule } from './wasm/bindings.js'; export { xz, xzAsync, xzSync } from './wasm/compress.js'; export { unxz, unxzAsync, unxzSync } from './wasm/decompress.js'; export { createUnxz, createXz } from './wasm/stream.js'; export { LZMA_BUF_ERROR, LZMA_CHECK_CRC32, LZMA_CHECK_CRC64, LZMA_CHECK_NONE, LZMA_CHECK_SHA256, LZMA_DATA_ERROR, LZMA_FINISH, LZMA_FORMAT_ERROR, LZMA_FULL_FLUSH, LZMA_GET_CHECK, LZMA_MEM_ERROR, LZMA_MEMLIMIT_ERROR, LZMA_NO_CHECK, LZMA_OK, LZMA_OPTIONS_ERROR, LZMA_PROG_ERROR, LZMA_RUN, LZMA_STREAM_END, LZMA_SYNC_FLUSH, LZMA_UNSUPPORTED_CHECK, type LZMAModule, } from './wasm/types.js'; export { easyDecoderMemusage, easyEncoderMemusage, isXZ, parseFileIndex, versionNumber, versionString, type XZFileIndex, } from './wasm/utils.js'; //# sourceMappingURL=lzma.inline.d.ts.map