import { TClassProperties } from '../../typedefs'; import { FabricImage } from '../Image'; import type { FabricObjectProps, SerializedObjectProps } from '../Object/types'; import type { TOptions } from '../../typedefs'; export type ImageSource = string | HTMLImageElement | HTMLVideoElement | HTMLCanvasElement; interface UniqueImageProps { srcFromAttribute: boolean; minimumScaleTrigger: number; cropX: number; cropY: number; imageSmoothing: boolean; crossOrigin: string | null; url: string; } export declare const UrlImageDefaultValues: Partial>; export interface SerializedImageProps extends SerializedObjectProps { src: string; crossOrigin: string | null; filters: any[]; resizeFilter?: any; cropX: number; cropY: number; url: string; } export interface UrlImageProps extends FabricObjectProps, UniqueImageProps { } export declare class XURL = Partial> extends FabricImage { minWidth: number; id: string; maxHeight: number; objType: string; locked: boolean; whiteboardId: string; userId: string; timestamp: Date; verticalAlign: string; zIndex: number; url: string | undefined; lines: object[]; title: string; relationship: object[]; description: string; extendPropeties: string[]; dynamicMinWidth: number; /** * Use this boolean property in order to split strings that have no white space concept. * this is a cheap way to help with chinese/japanese * @type Boolean * @since 2.6.0 */ splitByGrapheme: boolean; static ownDefaults: Record; static getDefaults(): { controls: { tl: import("../../..").Control; br: import("../../..").Control; }; }; constructor(element: ImageSource, options: Props); getWidgetMenuList(): string[]; getWidgetMenuLength(): 50 | 60; getContextMenuList(): string[]; InitializeEvent: () => void; _stopEvent(e: any): void; drawObject(ctx: CanvasRenderingContext2D): void; renderDescription(ctx: any): void; renderTitle(ctx: any, title: any): void; renderPublishDate(ctx: any): void; wrapText(context: any, text: any, x: any, y: any, maxWidth: number, lineHeight: number): void; fromURL>(url: string, options: any): Promise; } export {}; //# sourceMappingURL=XURL.d.ts.map