import type { RefObject } from 'react';
import React from 'react';
import { Resizable } from 're-resizable';
import type { RichMediaLayout } from '@atlaskit/adf-schema';
import type { DispatchAnalyticsEvent } from '../../analytics';
import type { HandleStyles } from '../../resizer/types';
import type { EnabledHandles, Props as ResizableMediaSingleProps } from './types';
export interface ResizableNumberSize {
    height: number;
    width: number;
}
export type ResizerProps = Omit<ResizableMediaSingleProps, 'height' | 'width'> & {
    calcNewSize: (newWidth: number, stop: boolean) => {
        layout: RichMediaLayout;
        width: number | null;
    };
    dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
    enable: EnabledHandles;
    handleComponentFunc?: (side: string) => React.ReactElement<any> | undefined;
    handleStyles?: HandleStyles;
    height?: number;
    highlights: (width: number, snapPoints: number[]) => number[] | string[];
    innerPadding?: number;
    nodeType?: 'media' | 'embed';
    ratio?: string;
    scaleFactor?: number;
    selected?: boolean;
    snapPoints: number[];
    width: number;
};
export type ResizerState = {
    isResizing: boolean;
};
export default class Resizer extends React.Component<ResizerProps, ResizerState> {
    resizable: RefObject<Resizable>;
    state: {
        isResizing: boolean;
    };
    private handleResizeStart;
    private handleResize;
    private handleResizeStop;
    render(): React.JSX.Element;
}
