import React from 'react'; import type { GenericSliderProps } from './interface'; export interface ComponentWrapperProps { tipFormatter?: (value: number) => React.ReactNode; tipProps?: { prefixCls?: string; overlay?: string; placement?: string; visible?: boolean; }; getTooltipContainer?: () => HTMLElement; } interface ComponentWrapperState { visibles: Record; } export default function createSliderWithTooltip(Component: React.ComponentClass): { new (props: (ComponentWrapperProps & Props) | Readonly): { state: { visibles: {}; }; handleTooltipVisibleChange: (index: any, visible: any) => void; handleWithTooltip: ({ value, dragging, index, disabled, ...restProps }: { [x: string]: any; value: any; dragging: any; index: any; disabled: any; }) => JSX.Element; render(): JSX.Element; context: any; setState(state: ComponentWrapperState | ((prevState: Readonly, props: Readonly) => ComponentWrapperState | Pick) | Pick, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; 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: ComponentWrapperProps & Props, context: any): { state: { visibles: {}; }; handleTooltipVisibleChange: (index: any, visible: any) => void; handleWithTooltip: ({ value, dragging, index, disabled, ...restProps }: { [x: string]: any; value: any; dragging: any; index: any; disabled: any; }) => JSX.Element; render(): JSX.Element; context: any; setState(state: ComponentWrapperState | ((prevState: Readonly, props: Readonly) => ComponentWrapperState | Pick) | Pick, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; 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; }; defaultProps: { tipFormatter(value: number): number; handleStyle: {}[]; tipProps: {}; getTooltipContainer: (node: any) => any; }; contextType?: React.Context; }; export {};