import React, { ComponentType } from 'react';
export interface InjectedArrowTooltipableProps {
tooltipArrowRef: HTMLSpanElement | null;
onSetTooltipArrowRef(): void;
}
declare const initialState: {
arrowRef: HTMLSpanElement;
};
declare type State = typeof initialState;
export declare const makeArrowTooltipable:
(WraptComponent: React.ComponentType
) => {
new (props: Pick
> | Readonly>>): {
state: State;
onSetTooltipArrowRef: (arrowRef: HTMLSpanElement) => void;
render(): JSX.Element;
context: any;
setState(state: {
arrowRef: HTMLSpanElement;
} | ((prevState: Readonly<{
arrowRef: HTMLSpanElement;
}>, props: Readonly>>) => {
arrowRef: HTMLSpanElement;
} | Pick<{
arrowRef: HTMLSpanElement;
}, K>) | Pick<{
arrowRef: HTMLSpanElement;
}, K>, 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<{
arrowRef: HTMLSpanElement;
}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly>>, prevState: Readonly<{
arrowRef: HTMLSpanElement;
}>): any;
componentDidUpdate?(prevProps: Readonly>>, prevState: Readonly<{
arrowRef: HTMLSpanElement;
}>, 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<{
arrowRef: HTMLSpanElement;
}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly>>, nextState: Readonly<{
arrowRef: HTMLSpanElement;
}>, nextContext: any): void;
};
new (props: Pick>, context: any): {
state: State;
onSetTooltipArrowRef: (arrowRef: HTMLSpanElement) => void;
render(): JSX.Element;
context: any;
setState(state: {
arrowRef: HTMLSpanElement;
} | ((prevState: Readonly<{
arrowRef: HTMLSpanElement;
}>, props: Readonly>>) => {
arrowRef: HTMLSpanElement;
} | Pick<{
arrowRef: HTMLSpanElement;
}, K>) | Pick<{
arrowRef: HTMLSpanElement;
}, K>, 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<{
arrowRef: HTMLSpanElement;
}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly>>, prevState: Readonly<{
arrowRef: HTMLSpanElement;
}>): any;
componentDidUpdate?(prevProps: Readonly>>, prevState: Readonly<{
arrowRef: HTMLSpanElement;
}>, 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<{
arrowRef: HTMLSpanElement;
}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly>>, nextState: Readonly<{
arrowRef: HTMLSpanElement;
}>, nextContext: any): void;
};
contextType?: React.Context;
};
export {};
//# sourceMappingURL=makeArrowTooltipable.d.ts.map