import { ComponentType, KeyboardEvent } from 'react'; export type TreeGestureProps = { onSelect: (e: KeyboardEvent, item: any) => void; onToggle: (e: KeyboardEvent, item: any) => void; onToggleAllSiblings: (e: KeyboardEvent, siblings: any) => void; }; export type WithTreeInjectedProps = TreeGestureProps & { onKeyDown: (e: KeyboardEvent, ref: any, item: any) => void; }; export declare function withTreeGesture(WrappedComponent: ComponentType): { new (props: Omit): { onKeyDown(event: KeyboardEvent, ref: any, item: any): void; render(): import("react/jsx-runtime").JSX.Element; context: unknown; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly>; state: Readonly<{}>; refs: { [key: string]: import("react").ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: import("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; }; displayName: string; contextType?: import("react").Context | undefined; };