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