/** * @file Bounded ZIP extraction with path and symlink containment. */ import type { UnzipFileInfo } from 'fflate'; import type { ExtractOptions } from './types.js'; export declare function assertSecureDirectory(directory: string, normalizedOutputDir: string): Promise; export declare function ensureSecureOutputDirectory(directory: string): Promise; export declare function extractZip(archivePath: string, outputDir: string, options?: ExtractOptions | undefined): Promise; export declare function planZipEntries(archive: Uint8Array, normalizedOutputDir: string, options: ResolvedZipOptions): PlannedZipEntry[]; export interface PlannedZipEntry { readonly archiveName: string; readonly directory: boolean; readonly targetPath: string; } export interface ResolvedZipOptions { readonly maxEntries: number; readonly maxFileSize: number; readonly maxTotalSize: number; readonly strip: number; } export declare function planZipEntry(entry: UnzipFileInfo, normalizedOutputDir: string, strip: number): PlannedZipEntry | undefined; export declare function writeZipEntry(targetPath: string, contents: Uint8Array, normalizedOutputDir: string): Promise;