elearning/Frontend-Learner/node_modules/image-meta/dist/index.d.cts

17 lines
455 B
TypeScript
Raw Normal View History

2026-01-13 10:46:40 +07:00
type ImageMeta = {
images?: Omit<ImageMeta, "images">[];
width: number | undefined;
height: number | undefined;
orientation?: number;
type?: string;
};
/**
* @param {Uint8Array|string} input - Uint8Array or relative/absolute path of the image file
* @param {Function=} [callback] - optional function for async detection
*/
declare function imageMeta(input: Uint8Array): ImageMeta;
export { imageMeta };
export type { ImageMeta };