site-panzai/node_modules/image-meta/dist/index.d.mts
2026-11-13 13:57:04 +01:00

15 lines
No EOL
443 B
TypeScript

type ImageMeta = {
images?: Omit<ImageMeta, "images">[];
width: number;
height: number;
orientation?: number;
type?: string;
animated?: boolean;
pages?: number;
};
/**
* @param {Uint8Array|string} input - Uint8Array or relative/absolute path of the image file
* @param {Function=} [callback] - optional function for async detection
*/
export declare function imageMeta(input: Uint8Array): ImageMeta;
export type { ImageMeta };