import { Placement } from '@floating-ui/react'; export type TooltipOptions = { /** * Whether the button should be disabled * @default false */ isInitialOpen?: boolean; /** * Specifies where the tooltip should be positioned * @default top */ placement?: Placement; /** * Whether the tooltip should be open */ isOpen?: boolean; /** * Allows to control when the tooltip is open */ onOpenChange?: (isOpen: boolean) => void; /** * The offset of the tooltip from its trigger. * @default 10 */ offset?: number; /** * Padding around the viewport * @default 8px */ paddingBoundary?: number; }; export declare const useTooltip: ({ isInitialOpen, placement, isOpen: controlledOpen, onOpenChange: setControlledOpen, offset: tooltipOffset, paddingBoundary, }?: TooltipOptions) => { arrowRef: import('react').RefObject; placement: Placement; strategy: import('@floating-ui/utils').Strategy; middlewareData: import('@floating-ui/core').MiddlewareData; x: number; y: number; isPositioned: boolean; update: () => void; floatingStyles: React.CSSProperties; refs: { reference: import('react').MutableRefObject; floating: React.MutableRefObject; setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void; setFloating: (node: HTMLElement | null) => void; } & import('@floating-ui/react').ExtendedRefs; elements: { reference: import('@floating-ui/react-dom').ReferenceType | null; floating: HTMLElement | null; } & import('@floating-ui/react').ExtendedElements; context: { placement: Placement; strategy: import('@floating-ui/utils').Strategy; x: number; y: number; middlewareData: import('@floating-ui/core').MiddlewareData; isPositioned: boolean; update: () => void; floatingStyles: React.CSSProperties; open: boolean; onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void; events: import('@floating-ui/react').FloatingEvents; dataRef: React.MutableRefObject; nodeId: string | undefined; floatingId: string | undefined; refs: import('@floating-ui/react').ExtendedRefs; elements: import('@floating-ui/react').ExtendedElements; }; getReferenceProps: (userProps?: React.HTMLProps) => Record; getFloatingProps: (userProps?: React.HTMLProps) => Record; getItemProps: (userProps?: Omit, "selected" | "active"> & { active?: boolean; selected?: boolean; }) => Record; isOpen: boolean; setIsOpen: (isOpen: boolean) => void; }; type ContextType = ReturnType | null; export declare const TooltipContext: import('react').Context; export declare const useTooltipContext: () => { arrowRef: import('react').RefObject; placement: Placement; strategy: import('@floating-ui/utils').Strategy; middlewareData: import('@floating-ui/core').MiddlewareData; x: number; y: number; isPositioned: boolean; update: () => void; floatingStyles: React.CSSProperties; refs: { reference: import('react').MutableRefObject; floating: React.MutableRefObject; setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void; setFloating: (node: HTMLElement | null) => void; } & import('@floating-ui/react').ExtendedRefs; elements: { reference: import('@floating-ui/react-dom').ReferenceType | null; floating: HTMLElement | null; } & import('@floating-ui/react').ExtendedElements; context: { placement: Placement; strategy: import('@floating-ui/utils').Strategy; x: number; y: number; middlewareData: import('@floating-ui/core').MiddlewareData; isPositioned: boolean; update: () => void; floatingStyles: React.CSSProperties; open: boolean; onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void; events: import('@floating-ui/react').FloatingEvents; dataRef: React.MutableRefObject; nodeId: string | undefined; floatingId: string | undefined; refs: import('@floating-ui/react').ExtendedRefs; elements: import('@floating-ui/react').ExtendedElements; }; getReferenceProps: (userProps?: React.HTMLProps) => Record; getFloatingProps: (userProps?: React.HTMLProps) => Record; getItemProps: (userProps?: Omit, "selected" | "active"> & { active?: boolean; selected?: boolean; }) => Record; isOpen: boolean; setIsOpen: (isOpen: boolean) => void; }; export {}; //# sourceMappingURL=TooltipContext.d.ts.map