/**
 * Pack a spec directory into a gzipped archive buffer.
 * Only includes recognized spec files (spec.md, technical.md, progress.md, planu-registry.json).
 * @param specDir - Absolute path to the spec directory.
 * @returns Gzipped buffer containing the archived spec files.
 */
export declare function packSpec(specDir: string): Promise<Buffer>;
/**
 * Unpack a gzipped archive buffer into a target directory.
 * Creates the target directory if it does not exist.
 * @param tarball - Gzipped buffer to extract.
 * @param targetDir - Absolute path to extract files into.
 */
export declare function unpackSpec(tarball: Buffer, targetDir: string): Promise<void>;
/**
 * Validate a package buffer for structural correctness and size limits.
 * @param tarball - Gzipped buffer to validate.
 * @returns Validation result with errors array.
 */
export declare function validatePackage(tarball: Buffer): Promise<{
    valid: boolean;
    errors: string[];
}>;
//# sourceMappingURL=packager.d.ts.map