/** * ZIP extraction and building for PPTX files. * * Uses browser-native DecompressionStream/CompressionStream for DEFLATE. */ /** Result of extracting a ZIP archive. */ export interface ZipContents { textFiles: Map; binaryFiles: Map; } /** * Extract all entries from a ZIP archive. * * Uses the Central Directory for reliable entry sizes, which handles * ZIP files with data descriptors (flag bit 3) where local header * sizes are set to 0 (e.g. files produced by Google Slides). */ export declare function extractZip(buffer: ArrayBuffer, log?: { warn(...args: unknown[]): void; }): Promise; /** * Build a new ZIP by iterating the original ZIP entries and replacing * modified text entries with new content. * * @param originalBuffer - The original PPTX bytes * @param modifications - path → new XML content (replaces or adds entries) * @param removals - set of paths to remove from the ZIP * @returns Rebuilt ZIP as ArrayBuffer */ export declare function buildZip(originalBuffer: ArrayBuffer, modifications: Map, removals?: Set, binaryModifications?: Map): Promise; //# sourceMappingURL=zip.d.ts.map