import { TClassProperties, TSize } from '../typedefs'; import { Image as FbricImage } from './Image'; import { LoadImageOptions } from '../util/misc/objectEnlive'; import type { FabricObjectProps, SerializedObjectProps, TProps } from './Object/types'; export type WBFileSource = string | HTMLImageElement | HTMLVideoElement | HTMLCanvasElement; interface UniqueWBFileProps { srcFromAttribute: boolean; minimumScaleTrigger: number; cropX: number; cropY: number; imageSmoothing: boolean; crossOrigin: string | null; } export declare const WBFileDefaultValues: Partial>; export interface SerializedWBFileProps extends SerializedObjectProps { src: string; crossOrigin: string | null; filters: any[]; resizeFilter?: any; cropX: number; cropY: number; } export interface WBFileProps extends FabricObjectProps, UniqueWBFileProps { } export declare class WBFile = Partial> extends FbricImage { minWidth: number; _id: string; obj_type: string; locked: boolean; whiteboardId: string; userId: string; timestamp: Date; verticalAlign: string; zIndex: number; lines: object[]; url: string; relationship: object[]; 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: WBFileSource, options: Props); setElement(element: WBFileSource, size?: Partial): void; toObject(propertiesToInclude: Array): object; getWidgetMenuList(): string[]; getWidgetMenuLength(): 50 | 60; getContextMenuList(): string[]; InitializeEvent: () => void; removedListener(): void; initDoubleClickSimulation(): void; onMouseUp(options: any): void; _stopEvent(e: any): void; drawObject(ctx: CanvasRenderingContext2D): void; getFileType(name?: string): string; isFileVideo(name: string): boolean; renderTitle(ctx: any, title: any): void; changeFileImgUrl(targetSrc: any): void; wrapText(context: any, text: any, x: any, y: any, maxWidth: any, lineHeight: any): void; getFileIconURL(name: any): string; fromURL>(fileOptions?: T & LoadImageOptions): Promise; } export {}; //# sourceMappingURL=File.d.ts.map