import { TipBaseAlignment, TipBaseProps } from '../shared/types'; /** * Base props shared by all InfoTip variants. * Contains all common props except the aria-* specific props. */ export type InfoTipBaseProps = TipBaseProps & { alignment?: TipBaseAlignment; /** * Accessible role description for the InfoTip button. Useful for translation. * @default "More information button" */ ariaRoleDescription?: string; emphasis?: 'low' | 'high'; /** * Called when the InfoTip button is clicked - the onClick function is called after the DOM updates and the tip is mounted. */ onClick?: (arg0: { isTipHidden: boolean; }) => void; /** * Use the camelCase syntax to pass aria-* props to the InfoTip button. */ 'aria-label'?: never; /** * Use the camelCase syntax to pass aria-* props to the InfoTip button. */ 'aria-labelledby'?: never; /** * Use the camelCase syntax to pass aria-* props to the InfoTip button. */ 'aria-roledescription'?: never; }; type InfoTipPropsWithAriaLabel = InfoTipBaseProps & { /** * Accessible label for the InfoTip button. ariaLabel or ariaLabelledby should be provided for accessibility. */ ariaLabel?: string; ariaLabelledby?: never; }; type InfoTipPropsWithAriaLabelledby = InfoTipBaseProps & { ariaLabel?: never; /** * ID of an element that labels the InfoTip button. */ ariaLabelledby?: string; }; export type InfoTipProps = InfoTipPropsWithAriaLabel | InfoTipPropsWithAriaLabelledby; export declare const InfoTip: React.FC; export {};