import { IconProps } from "../icons/Icons.types.cjs"; import { ContextualHelpTitleProps } from "./ContextualHelpTitle.cjs"; import { ContextualHelpDescriptionProps } from "./ContextualHelpDescription.cjs"; import { ContextualHelpContentProps } from "./ContextualHelpContent.cjs"; import { ReactNode, Ref } from "react"; declare const icons: { help: ({ size, className, ...props }: IconProps) => import("react").JSX.Element; info: ({ size, className, ...props }: IconProps) => import("react").JSX.Element; }; /** * Placement of the popover. * @default bottom start */ type Placement = 'top' | 'bottom' | 'left' | 'right' | 'top start' | 'bottom start'; export interface ContextualHelpProps { /** Size of the button and popover. */ size?: string; /** Content rendered inside the popover. */ children: ReactNode; /** Visual variant of the icon (e.g. info or help). */ variant?: keyof typeof icons; /** * Placement of the popover relative to the button. On small screens * `left` and `right` open at the `bottom`, as there is no room beside it. */ placement?: Placement; /** Optional width size for the popover */ width?: 'small' | 'medium' | 'large'; /** Offset (in px) between button and popover. */ offset?: number; /** Whether the popover is open by default (uncontrolled). */ defaultOpen?: boolean; /** Controls the open state of the popover (controlled). */ open?: boolean; /** Handler that is called when the open state changes. */ onOpenChange?: (isOpen: boolean) => void; /** Accessible label for the button. */ ariaLabel?: string; } export declare const ContextualHelp: (({ children, variant, size, width, placement, offset, defaultOpen, open, onOpenChange, ariaLabel, ref }: ContextualHelpProps & { ref?: Ref; }) => import("react").JSX.Element) & { Title: ({ children, variant, size }: ContextualHelpTitleProps) => import("react").JSX.Element; Description: ({ children }: ContextualHelpDescriptionProps) => import("react").JSX.Element; Content: ({ children, variant, size }: ContextualHelpContentProps) => import("react").JSX.Element; }; export {};