import React from 'react'; import { SelectionRectProps, SelectionRectState } from './types'; /** * Provides a transparent selection rectangle which allows users to select a rectangular region of an SVG. Mouse events * are enabled while the user is holding down the control or shift key. Releasing the mouse triggers a callback with * information about the selected region; releasing the key during selection cancels the selection. */ declare class SelectionRect extends React.Component { private _onKeyDown; private _onKeyUp; constructor(props: SelectionRectProps); private mouseLocation; private static transform; static getDerivedStateFromProps(props: SelectionRectProps, state: SelectionRectState): SelectionRectState; componentDidMount(): void; componentWillUnmount(): void; private onKeyDown; private onKeyUp; private onMouseDown; private onMouseMove; private onMouseOut; private onMouseUp; private selectionPath; render(): JSX.Element; } export default SelectionRect;