/** * Minimal, dependency-free PNG dimension reader. * * The adapter derives an image's `width`/`height` from the committed PNG bytes * rather than trusting the manifest, so reference dimensions can never drift * from the pixels the diff engine actually rasterizes against. The bytes may * come from disk (a directory bundle) or from an in-memory unzip (a `.zip` * bundle), so the parser works on a buffer the adapter already holds. */ export interface PngSize { width: number; height: number; } /** * Parse a PNG's pixel dimensions from its IHDR chunk. * * @param buf the raw PNG bytes (signature must be first). * @param label a human path/name for error messages. * @throws if the bytes are not a PNG (signature / IHDR mismatch) or report * zero dimensions. */ export declare function parsePngSize(buf: Uint8Array, label?: string): PngSize; //# sourceMappingURL=png.d.ts.map