import { Shape, ShapeConfig } from '../Shape'; import { GetSet, IRect } from '../types'; import { Context } from '../Context'; export interface ImageConfig extends ShapeConfig { image: CanvasImageSource | undefined; crop?: IRect; } export declare class Image extends Shape { constructor(attrs: ImageConfig); _setImageLoad(): void; _useBufferCanvas(): boolean; _sceneFunc(context: Context): void; _hitFunc(context: any): void; getWidth(): any; getHeight(): any; static fromURL(url: any, callback: any): void; image: GetSet; crop: GetSet; cropX: GetSet; cropY: GetSet; cropWidth: GetSet; cropHeight: GetSet; }