declare const _default: (instance?: typeof import("fabric/fabric-impl")) => void; export default _default; declare module 'fabric' { namespace fabric { interface IUtil { findScaleToCover(source: { width: number; height: number; }, destionation: { width: number; height: number; }): number; findScaleToFit(source: { width: number; height: number; }, destionation: { width: number; height: number; }): number; } namespace Image { function from(fileOrSrc: File | string, options?: IImageOptions, canvas?: Canvas): Promise; function fromFile(file: File, options?: IImageOptions, canvas?: Canvas): Promise; function fromSrc(src: string, options?: IImageOptions, canvas?: Canvas): Promise; function __getScaleFromBackgroundSize(size: Image['size'], source: { width: number; height: number; }, destination: { width: number; height: number; }): number; function __onReaderLoad(this: FileReader, resolve: Function, options: IImageOptions, loadingRect: ReturnType, result: ProgressEvent): void; function __onImageLoad(this: HTMLImageElement, resolve: Function, options: IImageOptions, loadingRect: ReturnType): void; function __createImageLoader(options: IImageOptions, canvas?: Canvas): Rect | undefined; } interface IImageOptions { size?: 'cover' | 'fit'; } } }