import React, { type ReactNode } from 'react'; import type { OldHelpTextProps } from '../text/converter.old'; import type { IconProps } from '../icons/generated'; import type { InputStatus } from '../input/types'; import type { CSSValueWithLength } from '../../styles'; import type { FormFieldProps as FormFieldNewProps } from './FormField'; import type { FormHelperTextProps as FormHelperTextNewProps } from './FormHelperText'; import type { FormLabelProps as FormLabelNewProps } from './FormLabel'; export interface OldFormHelperTextProps extends Omit { /** @deprecated leftIcon을 대신 사용해주세요. */ icon?: React.ReactElement | boolean; /** @deprecated FormHelperText 사용처에서 margin 마이그레이션 이후 스펙아웃될 예정입니다. */ mt?: CSSValueWithLength; } type FormHelperTextStyleProps = { style?: React.CSSProperties; }; export declare function convertOldFormHelperTextProps(props: OldFormHelperTextProps & FormHelperTextStyleProps): FormHelperTextNewProps & FormHelperTextStyleProps; export type OldFormFieldHelperTextProps = Omit], 'children' | 'status'>; export interface OldFormFieldProps extends Omit { /** @deprecated tooltip을 대신 사용해주세요. */ helper?: OldHelpTextProps; /** @deprecated helperText를 대신 사용해주세요. */ formHelperText?: React.ReactNode; /** @deprecated helperTextProps를 대신 사용해주세요. */ formHelperTextProps?: OldFormFieldHelperTextProps; /** @deprecated FormField는 항상 상단 정렬합니다. */ alignment?: 'top' | 'center'; } export declare function convertOldFormFieldProps(props: OldFormFieldProps): FormFieldNewProps; export declare function convertOldFormFieldChildren(children: ReactNode, status?: InputStatus): ReactNode; export interface OldFormLabelProps extends Omit { /** @deprecated tooltip을 대신 사용해주세요. */ helper?: OldHelpTextProps; } export declare function convertOldFormLabelProps(props: OldFormLabelProps): FormLabelNewProps; export {};