import './IconButton.css'; import React from 'react'; import type { ElementType } from 'react'; import type { IconSize, IconProps } from '@ornament-ui/icons'; import type { FormElementSizeVariant } from '../../types/FormElementSizeVariant'; import type { PolymorphicComponentPropsWithoutRef } from '../../utils/polymorphicComponentWithRef'; import { ICON_BUTTON_DEFAULT_TAG } from './constants'; export declare const iconButtonColorVariant: readonly ["primary", "secondary"]; export declare const iconButtonVariant: readonly ["contained", "outlined", "ghost", "function", "floating"]; export type IconButtonVariant = (typeof iconButtonVariant)[number]; export type IconButtonColorVariant = (typeof iconButtonColorVariant)[number]; export type IconButtonIconProps = { size?: IconSize; }; type IconButtonBaseProps = { /** Иконка */ icon: React.FC; /** Вариант представления компонента */ variant?: IconButtonVariant; /** Размер */ size?: FormElementSizeVariant; /** Основной цвет компонента */ color?: IconButtonColorVariant; /** Цвет иконки кнопки */ iconColor?: string; /** Если {true} уменьшает размер компонента */ compressed?: boolean; /** Если {true} делает компонент заблокированным */ disabled?: boolean; /** Если {true} переводит компонент в состояние загрузки */ loading?: boolean; /** Дополнительные CSS-классы */ className?: string; children?: never; }; export type IconButtonProps = PolymorphicComponentPropsWithoutRef; export declare const cnIconButton: import("@bem-react/classname").ClassNameFormatter; export declare const IconButton: import("../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef; export {};