import type { ShapeConfig } from '../Shape.ts'; import { Shape } from '../Shape.ts'; import type { GetSet, IRect } from '../types.ts'; import type { Context } from '../Context.ts'; export interface ImageConfig extends ShapeConfig { image: CanvasImageSource | undefined; crop?: IRect; cornerRadius?: number | number[]; } export declare class Image extends Shape { private _loadListener; constructor(attrs?: ImageConfig); _setImageLoad(): void; _removeImageLoad(image: any): void; destroy(): this; _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; }