import { ReactElement, ReactNode, Ref } from 'react'; import { position } from '../position'; interface ChildProps { ref?: Ref; "aria-describedby"?: string; "aria-label"?: string; children?: ReactNode; onPointerEnter?: (e: React.PointerEvent) => void; onPointerLeave?: (e: React.PointerEvent) => void; onPointerDown?: (e: React.PointerEvent) => void; onFocus?: (e: React.FocusEvent) => void; onBlur?: (e: React.FocusEvent) => void; } export interface DialogProps { location?: position.Location; hide?: boolean; children: [ReactNode, ReactElement]; } /** * A tooltip that appears when the user hovers or keyboard-focuses an element. * * @param props.children - The tooltip's content, followed by the element to attach * the tooltip to. * @param props.location - The preferred location for the tooltip relative to the * element. If unspecified or the tooltip would overflow the window, the best * location is chosen automatically. * @param props.hide - Force the tooltip to remain hidden. * @default false. */ export declare const Dialog: ({ children, location: locationProp, hide, }: DialogProps) => ReactElement; export declare const formatTip: (tip: ReactNode) => ReactNode; export {}; //# sourceMappingURL=Dialog.d.ts.map