import * as React from "react"; import { ModalCloseReason } from "../Modal"; import { PopoverProps } from "../Popover"; import { Placement } from "@floating-ui/react"; import { AutoPlacement } from "../../hooks/usePlacement"; export type FloatingTipCloseReason = "clickCloseIcon"; export type FloatingTipProps = { /** * That becomes position reference of this component. */ baseElement: HTMLElement | null; /** * Define priority of position. Please check [this](https://floating-ui.com/docs/tutorial#placements). * For backward compatibility, `"auto" | "auto-start" | "auto-end"` are included in addition to the above positions. */ positionPriority?: (Placement | AutoPlacement)[]; offset?: [number, number]; isOpen: boolean; children: React.ReactNode; onClose?: (event: React.MouseEvent, reason: ModalCloseReason | FloatingTipCloseReason) => void; /** * props of [Popover](/?path=/docs/components-utils-popover) */ popoverProps?: Partial; }; declare const FloatingTip: React.ForwardRefExoticComponent>; export default FloatingTip;