import type { ReactElement } from 'react'; import type { IconProps } from '../icons/generated'; import type { AccordionButtonProps as AccordionButtonNewProps } from './AccordionButton'; import type { ButtonProps as ButtonNewProps } from './Button'; import type { FloatingButtonProps as FloatingButtonNewProps } from './FloatingButton'; import type { IconButtonProps as IconButtonNewProps } from './IconButton'; import type { PopoverButtonProps as PopoverButtonNewProps } from './PopoverButton'; import type { TextButtonProps as TextButtonNewProps } from './TextButton'; import type { ButtonKind, IconButtonKind, IconButtonShape, TextButtonKind } from './types.old'; export interface OldButtonProps extends Omit { /** @deprecated variant와 color를 대신 사용해주세요. */ kind?: ButtonKind; /** @deprecated leftIcon을 대신 사용해주세요. */ startIcon?: ReactElement; /** @deprecated rightIcon을 대신 사용해주세요. */ endIcon?: ReactElement; } export declare function convertOldButtonProps(props: OldButtonProps): ButtonNewProps; export interface OldAccordionButtonProps extends Omit { /** @deprecated open을 대신 사용해주세요. */ opened?: boolean; } export declare function convertOldAccordionButtonProps(props: OldAccordionButtonProps): AccordionButtonNewProps; export interface OldFloatingButtonProps extends Omit { /** @deprecated open을 대신 사용해주세요. */ opened?: boolean; /** @deprecated leftIcon을 대신 사용해주세요. */ startIcon?: ReactElement; } export declare function convertOldFloatingButtonProps(props: OldFloatingButtonProps): FloatingButtonNewProps; export interface OldIconButtonProps extends Omit { /** @deprecated variant와 color를 대신 사용해주세요. */ kind?: IconButtonKind; /** @deprecated rectangle 대신 rounded를 사용해주세요. */ shape?: IconButtonShape; } export declare function convertOldIconButtonProps(props: OldIconButtonProps): IconButtonNewProps; export interface OldTextButtonProps extends Omit { /** @deprecated variant를 대신 사용해주세요. */ kind?: TextButtonKind; /** @deprecated leftIcon을 대신 사용해주세요. */ startIcon?: ReactElement; /** @deprecated rightIcon을 대신 사용해주세요. */ endIcon?: ReactElement; } export declare function convertOldTextButtonProps(props: OldTextButtonProps): TextButtonNewProps; export interface OldPopoverButtonProps extends Omit, 'buttonType' | 'optionsMatchButtonWidth' | 'variant' | 'color' | 'leftIcon'> { /** @deprecated buttonType을 대신 사용해주세요. */ useIconButton?: boolean; /** @deprecated optionsMatchButtonWidth를 대신 사용해주세요. */ optionsMatchRefWidth?: boolean; /** @deprecated variant와 color를 대신 사용해주세요. */ kind?: ButtonKind; /** @deprecated leftIcon을 대신 사용해주세요. */ startIcon?: ReactElement; } export declare function convertOldPopoverButtonProps(props: OldPopoverButtonProps): PopoverButtonNewProps;