import type { ReactElement, ReactNode } from 'react'; import type { TagPresetType } from '@n3/css-base'; import type { TagComponent as TagComponentType, TagSize, TagVariant } from './types'; export type TagProps = { /** * Цвет тега из стандартной палитры */ preset?: TagPresetType; /** * Переопределённый цвет текста (только в случае, есле цветов из `preset` недостаточно) */ textColor?: string; /** * Переопределённый цвет фона (только в случае, есле цветов из `preset` недостаточно) */ backgrondColor?: string; /** * Переопределённый цвет границы (только в случае, есле цветов из `preset` недостаточно) */ borderColor?: string; /** * Компонент тега */ component?: TagComponentType; /** * Дополнительный класс тега */ className?: string; /** * Стиль отображения тега */ variant?: TagVariant; /** * Размер (работает только в стандартном стиле) */ size?: TagSize; /** * Содержимое тега */ children?: ReactNode; [key: string]: unknown; }; export declare const StyledWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, { $backgrondColor?: string | undefined; $borderColor?: string | undefined; $preset: TagPresetType; $size: TagSize; $textColor?: string | undefined; $variant: TagVariant; }, never>; export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, { $variant: TagVariant; }, never>; export declare function Tag({ component: TagComponent, className, variant, size, preset, textColor, backgrondColor, borderColor, children, ...rest }: TagProps): ReactElement;