/** * Archive (ZIP) module - shared exports. * * This module contains exports that are identical across Node.js and browser. * Platform-specific entrypoints (index.ts / index.browser.ts) should re-export * from this file and then layer their platform-specific bindings. */ export type { ArchiveSource } from "./io/archive-source.js"; export type { ArchiveSink } from "./io/archive-sink.js"; export { toAsyncIterable, toReadableStream } from "./io/archive-source.js"; export { HttpRangeReader, BufferReader, RangeNotSupportedError, HttpRangeError, type RandomAccessReader, type HttpRangeReaderOptions, type HttpRangeReaderStats } from "./io/random-access.js"; export { RemoteZipReader, Crc32MismatchError, type RemoteZipReaderOptions, type RemoteZipOpenOptions, type RemoteZipStats, type ExtractOptions } from "./unzip/remote-zip-reader.js"; export { AbortError, createAbortError, isAbortError, throwIfAborted, ArchiveError, ZipParseError, InvalidZipSignatureError, EocdNotFoundError, DecryptionError, PasswordRequiredError, FileTooLargeError, UnsupportedCompressionError, EntrySizeMismatchError, type EntrySizeMismatchReason } from "./shared/errors.js"; export { zip } from "./create-archive.js"; export { unzip } from "./read-archive.js"; export type { ArchiveFormat } from "./shared/types.js"; export { ZipArchive, ZipEditor, editZip, editZipUrl, ZipEditPlan, type ZipOptions, type ZipEntryOptions, type ZipEditOptions, type ZipEditUrlOptions, type ZipEditWarning, type ZipEditOp } from "./zip/index.js"; export { ZipReader, UnzipEntry, type UnzipOptions } from "./unzip/index.js"; export type { ZipOperation, ZipProgress, ZipStreamOptions } from "./zip/index.js"; export type { UnzipOperation, UnzipProgress, UnzipStreamOptions } from "./unzip/index.js"; export { TAR_BLOCK_SIZE, TAR_TYPE, TarArchive, TarReader, TarReaderEntry, createTarArchive, createTarReader, tar, tarSync, parseTar, parseTarStream, untar, isTarFile, isTarDirectory, isTarSymlink, isTarHardLink, isTarDataEntry, type TarType, type TarEntryInfo, type TarEntry, type TarHeaderOptions, type TarParseOptions, type TarArchiveOptions, type TarArchiveEntryOptions, type TarArchiveProgress, type TarArchiveStreamOptions, type TarArchiveOperation, type TarReaderOptions, type TarReaderProgress, type TarReaderStreamOptions, type TarReaderOperation } from "./tar/index.browser.js"; export { base64ToUint8Array, uint8ArrayToBase64 } from "../../utils/utils.base.js"; export { concatUint8Arrays, stringToUint8Array, uint8ArrayToString } from "../../utils/binary.js"; export { ZIP_CRYPTO_HEADER_SIZE, zipCryptoInitKeys, zipCryptoDecrypt, zipCryptoEncrypt, AES_VENDOR_ID, AES_VERSION_AE1, AES_VERSION_AE2, AES_EXTRA_FIELD_ID, AES_SALT_LENGTH, AES_KEY_LENGTH, AES_AUTH_CODE_LENGTH, AES_PASSWORD_VERIFY_LENGTH, COMPRESSION_METHOD_AES, aesDecrypt, aesEncrypt, aesEncryptedSize, buildAesExtraField, randomBytes, type AesKeyStrength, type AesExtraFieldInfo, type ZipEncryptionMethod, type ZipEncryptionInfo, type ZipPasswordOptions, type ZipEncryptionOptions, getEncryptionMethodName, isAesEncryption, getAesKeyStrength, encryptionMethodFromAesKeyStrength } from "./crypto/index.js";