/// import * as React from 'react'; export declare type imageAttr = 'width' | 'height'; export interface ImageState { width: number; height: number; left: number; top: number; [x: string]: number; } export interface IDialogProps { title: any; defaultProps: any; footer: any; visible: boolean; width: number; onCancel: (args?: any) => any; onOk?: (args?: any) => any; } export interface ICropperProps { file: File; size: number[]; onChange: (args: any) => void; prefixCls?: string; circle?: boolean; spin?: React.ComponentElement; renderModal?: (args?: any) => React.ComponentElement; locale?: String; thumbnailSizes?: number[][]; resizer?: (from: HTMLCanvasElement, to: HTMLCanvasElement) => Promise; } export default class Cropper extends React.Component { static defaultProps: { prefixCls: string; size: number[]; circle: boolean; onChange: () => void; locale: string; }; refNodes: { viewport?: HTMLElement; dragger?: HTMLElement; dragNotice?: HTMLElement; Canvas2x?: HTMLCanvasElement; Canvas1x?: HTMLCanvasElement; }; updateThumbnail: () => void; constructor(props: any); componentDidMount(): void; componentWillUnmount(): void; readFile: (file: File) => void; loadImage: (reader: FileReader) => void; scaleImage: (scale: any) => void; applyImageState: (imageState: any) => void; normalizeImage: (image: any) => void; applyPositions: () => void; onMouseDown: () => void; dragStart: (ev: any) => void; dragOver: (ev: any) => void; dragEnd: () => void; handleCancel: () => void; handleOk: () => void; hideModal: () => void; getThumbnailSize: (index: any) => number[]; applyRef(refName: string, ele: Element): void; render(): JSX.Element; }