/** * Tarball verification and extraction * Handles npm package tarball safety checks with inline tar parser */ import { IntegrityJson, PluginJson } from '../types.js'; export interface ExtractedTarball { files: Map; totalSize: number; } export declare function extractTarball(tarballPath: string): Promise; export declare function validatePackageJson(content: Buffer): void; export declare function parseIntegrityJson(content: Buffer): IntegrityJson; export declare function verifyIntegrity(files: Map, integrity: IntegrityJson): void; export declare function parsePluginJson(content: Buffer): PluginJson; export declare function validatePluginContent(files: Map, expectedName: string, hasSkills: boolean, hasMcp: boolean): PluginJson; export interface VerifiedTarball { files: Map; integrity: IntegrityJson; pluginJson: PluginJson; } export declare function verifyTarball(tarballPath: string, expectedName: string, hasSkills: boolean, hasMcp: boolean): Promise; //# sourceMappingURL=tarball.d.ts.map