export interface ImageDimensions { width: number; height: number; } /** * The pixel size a browser will lay an uploaded image out at, or null when it * cannot be read. * * `autoOrient` rather than the top-level width/height, because `metadata()` * reports the stored pixels: a phone photo carrying EXIF orientation 6 is stored * landscape and displayed portrait, and recording the stored shape would reserve * a landscape box around a portrait picture — the layout shift this exists to * prevent, wearing a hat. The thumbnail path has the same rule as `.rotate()`. * * This reads the container header instead of decoding the pixels, so it is cheap * enough to sit on the upload request tick. Null on any failure: an attachment * with no dimensions renders on the client's fallback, but a probe that threw * must never cost the caller their upload. */ export declare function readImageDimensions(buffer: Buffer): Promise; //# sourceMappingURL=image-dimensions.d.ts.map