16 lines
338 B
TypeScript
16 lines
338 B
TypeScript
export interface ImageProcessorOptions {
|
|
dataUrl: string
|
|
width?: number
|
|
height?: number
|
|
quality: number
|
|
}
|
|
|
|
export interface ImageProcessorData {
|
|
dataUrl: string
|
|
blob: Blob
|
|
}
|
|
|
|
export declare function ImageProcessor(
|
|
options: ImageProcessorOptions,
|
|
callback?: (data: ImageProcessorData) => any): Promise<ImageProcessorData>
|