import type { MouseEvent } from 'react'; import { IconNameWithSize } from '@talend/icons/dist/typeUtils'; import { DeprecatedIconNames } from '../../../../types'; import { ClickableProps } from '../../../Clickable'; type CommonAffixButtonPropsType = { dataTestid?: string; children: string; isDropdown?: boolean; onClick: (event: MouseEvent | KeyboardEvent) => void; isSuffix?: boolean; }; type AffixButtonHideTextProps = { hideText?: true; icon: DeprecatedIconNames | IconNameWithSize<'M'>; }; type AffixButtonShowTextProps = { hideText?: false; icon?: DeprecatedIconNames; }; export type AffixButtonPropsType = Omit & CommonAffixButtonPropsType & (AffixButtonHideTextProps | AffixButtonShowTextProps); declare const AffixButton: import("react").ForwardRefExoticComponent>; export default AffixButton;