/** Thrown when the bytes are encrypted and the password does not open them. */ export declare class WrongPasswordError extends Error { /** @param message The message to carry; the default states the failure. */ constructor(message?: string); } /** Whether the bytes are an OOXML package encrypted per ECMA-376 §2.3. */ export declare function isEncryptedPackage(bytes: Uint8Array): boolean; /** * Decrypt an encrypted OOXML package into the plain OPC zip inside it. * * @param bytes The compound file (`EncryptionInfo` + `EncryptedPackage`). * @param password The password to open it with. * @returns The decrypted package bytes — an ordinary `.docx`/`.xlsx` zip. * @throws WrongPasswordError when the password fails the document's own * verifier, and Error when the encryption is one this reader does not know. */ export declare function decryptPackage(bytes: Uint8Array, password: string): Uint8Array;