/** * Archive Format Handler * * Handles archive file operations using decompress library. * Supports: ZIP, TAR, TAR.GZ, TGZ * Operations: extract, list contents, extract single file */ export interface ArchiveEntry { path: string; type: 'file' | 'directory'; size: number; mode: number; mtime: Date; } export interface ArchiveContents { entries: ArchiveEntry[]; totalSize: number; fileCount: number; directoryCount: number; } export declare class ArchiveHandler { /** * Extract entire archive to target directory */ extract(archivePath: string, targetDir: string): Promise; /** * List archive contents without extracting */ listContents(archivePath: string): Promise; /** * Extract single file from archive */ extractFile(archivePath: string, filename: string): Promise; /** * Extract multiple files matching pattern */ extractFiles(archivePath: string, targetDir: string, pattern: RegExp): Promise; /** * Get archive metadata */ getMetadata(archivePath: string): Promise<{ size: number; format: string; contents: ArchiveContents; }>; /** * Check if file is a supported archive format */ isSupportedFormat(filePath: string): boolean; } export declare const archiveHandler: ArchiveHandler; //# sourceMappingURL=archive.d.ts.map