import { ButtonHTMLAttributes } from 'react'; import type { ComponentProps, ComponentType, MouseEventHandler, ReactElement, ReactNode, Ref } from 'react'; import type { ButtonColor, ButtonSize } from './types'; export type ButtonProps> = { /** * Цвет кнопки */ color?: ButtonColor; /** * Размер кнопки */ size?: ButtonSize; /** * Компонент корневого элемента кнопки */ component?: ButtonComponentType; /** * Дополнительный props компонента кнопки при использовании кастомного component */ componentProps?: ComponentProps; /** * Состояние загрузки */ loading?: boolean; /** * Кнопка выключена */ disabled?: boolean; /** * Кнопка зажата */ pressed?: boolean; /** * Не отображать закругления слева */ flatLeft?: boolean; /** * Не отображать закругления справа */ flatRight?: boolean; /** * Кнопка состоит только из иконки */ onlyIcon?: boolean; /** * Дополнительный класс корневого компонента кнопки */ className?: string; /** * Обработчик нажатия на кнопку */ onClick?: MouseEventHandler; children?: ReactNode; /** * Тип кнопки 'submit', 'reset' или 'button' */ type?: ButtonHTMLAttributes['type']; }; export declare const Button: | keyof JSX.IntrinsicElements = "button">(props: ButtonProps & { ref?: Ref | undefined; }) => ReactElement;