import React from 'react'; import { TComputedBounds, TGetBoundsForNodeArgs } from './utils'; import { TSelectableItemState } from './Selectable.types'; declare const createSelectable: (WrappedComponent: React.ComponentType) => { new (props: Readonly): { state: { isSelected: any; isSelecting: boolean; }; node: HTMLElement | null; bounds: import("./utils").Maybe; componentDidMount(): void; componentWillUnmount(): void; registerSelectable: (containerScroll?: TGetBoundsForNodeArgs | undefined) => void; getSelectableRef: (ref: HTMLElement | null) => void; render(): JSX.Element; context: any; setState(state: TSelectableItemState | ((prevState: Readonly, props: Readonly) => TSelectableItemState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; }; new (props: any, context?: any): { state: { isSelected: any; isSelecting: boolean; }; node: HTMLElement | null; bounds: import("./utils").Maybe; componentDidMount(): void; componentWillUnmount(): void; registerSelectable: (containerScroll?: TGetBoundsForNodeArgs | undefined) => void; getSelectableRef: (ref: HTMLElement | null) => void; render(): JSX.Element; context: any; setState(state: TSelectableItemState | ((prevState: Readonly, props: Readonly) => TSelectableItemState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; }; contextType: React.Context; propTypes: { isSelected: import("prop-types").Requireable; }; defaultProps: { isSelected: boolean; }; }; export default createSelectable;