import { Buffer } from 'node:buffer'; import type { PackerOptions } from './packer'; /** * Synchronously packs PNG data into a buffer * @param metaData - The PNG metadata and pixel data * @param options - Packer options * @returns Packed PNG data as a buffer * @throws {Error} If sync capability is not available or if compression fails */ export declare function packSync(metaData: PNGMetaData, options?: PackerOptions): Buffer; // Check if we have synchronous zlib support declare interface PNGMetaData { width: number height: number data: Buffer gamma?: number } // Default export for backward compatibility export default packSync;