import { type FC, forwardRef } from "react";
import { type DialogProps } from './Dialog';
export interface WrapProps {
    tooltipDelay?: DialogProps["delay"];
    tooltip?: DialogProps["children"][0];
    tooltipLocation?: DialogProps["location"];
    hideTooltip?: DialogProps["hide"];
}
/**
 * A higher order component that wraps a React component and attaches an optional,
 * prop-set tooltip to it.
 *
 * @param Component - Any React component.
 *
 * @returns The Wrapped React component, with the following props added:
 *
 * @param props.tooltip - An optional ReactNode containing the tooltip content. If
 * the prop is not specified, a tooltip is not shown.
 * @param props.tooltipDelay - The delay before the tooltip appears, in milliseconds. This prop
 * overrides the value set in Tooltip.Config. Defaults to the value set in Tooltip.Config,
 * which defaults to 500ms.
 * @param props.tooltipHide - Force the tooltip to remain hidden, even when the user hovers
 * over the element it is attached to.
 * @default false.
 * @param props.tooltipLocation - The location for the tooltip to appear relative to the
 * element it is attached to. If unspecified, the tooltip automatically chooses a
 * location based on the element's position on the screen.
 */
export declare const wrap: <P extends {} = {}, E extends HTMLElement = HTMLElement>(Component: FC<P>) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<P & WrapProps> & import("react").RefAttributes<E>>;
