site-panzai/node_modules/image-meta/dist/index.d.mts

15 lines
443 B
TypeScript
Raw Permalink Normal View History

2026-11-13 13:57:04 +01:00
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 };