import { IImageData } from '../index'; export type GetArrTypeUnion = T extends (infer I)[] ? I : never; export type IImageLoadData = { imageInstance: HTMLImageElement; data: Event; imageType: IImageTypeInfo | null; }; export interface IImageTypeInfo { ext: string; mime: string; } export interface IGetImageParams { src?: string; crossOrigin?: '' | 'anonymous' | 'use-credentials'; } export declare const getImageInfo: (params: IGetImageParams) => Promise; export declare const getImageType: (imageBufferData: ArrayBuffer) => Promise; export declare const loadImage: (params: IGetImageParams) => Promise; export declare const transformImageData2ArrayBuffer: (image: HTMLImageElement) => ArrayBufferLike; export declare const getImageBufferFromRemote: (url?: string) => Promise;