// @flow export type UseErrorTooltip = ({| onFocus?: (ev: SyntheticInputEvent) => void | Promise, |}) => {| tooltipShown: boolean, tooltipShownHover: boolean, setTooltipShown: ((boolean => boolean) | boolean) => void, setTooltipShownHover: ((boolean => boolean) | boolean) => void, labelRef: {| current: HTMLElement | null |}, iconRef: {| current: HTMLElement | null |}, handleFocus: (ev: SyntheticInputEvent) => void | Promise, |}; declare export default UseErrorTooltip;