/** * The eight bytes of a PNG that say how big it is. * * Separate from {@link foreignRaster}, which answers the same question by * decoding the whole image. That is the right cost when the pixels are wanted * anyway; it is the wrong one when the caller only needs to know whether two * captures are the same shape. A full-page route capture is nine thousand rows, * and a push reads twenty of them. */ /** * How large a PNG says it is, or nothing. * * `null` rather than zeroes, and rather than a throw: the caller is deciding * whether it can *say* something about an image, and a zero would be a claim * about a raster nobody read. Bytes that are not a PNG, or are too short to * carry a header, are not a picture of size zero — they are a picture this * cannot measure, and every caller has somewhere honest to put that. */ export declare function pngSize(bytes: Uint8Array): { readonly width: number; readonly height: number; } | null; //# sourceMappingURL=size.d.ts.map