import type { OldButtonProps } from '../button/converter.old'; import type { NotificationKind } from '../notification/types.old'; import type { AlertModalProps } from './createModalElement'; import type { ConfirmModalProps } from './createModalElement'; import type { FloatingModalProps } from './FloatingModal'; import type { ModalProps } from './Modal'; import type { NoticeModalProps } from './NoticeModal'; export type OldModalButtonProps = Omit; interface OldOverlayProps { /** @deprecated open을 대신 사용해주세요. */ opened?: boolean; /** @deprecated shouldCloseOnOutsideClick을 대신 사용해주세요. */ canClickOutside?: boolean; /** @deprecated shouldCloseOnEscapeKey를 대신 사용해주세요. */ canCloseEscapeKey?: boolean; } export interface OldModalProps extends Omit, OldOverlayProps { /** @deprecated closable을 대신 사용해주세요. */ closeButton?: boolean; /** @deprecated onBack을 대신 사용해주세요. */ onClickBackButton?: () => void; confirmButtonProps?: OldModalButtonProps; cancelButtonProps?: OldModalButtonProps; } export declare function convertOldModalProps(props: OldModalProps): ModalProps; export interface OldAlertModalProps extends Omit, OldOverlayProps { /** @deprecated status를 대신 사용해주세요. */ kind?: NotificationKind; /** @deprecated content를 대신 사용해주세요. */ text?: AlertModalProps['content']; /** @deprecated description을 대신 사용해주세요. */ subtext?: AlertModalProps['description']; confirmButtonProps?: OldModalButtonProps; /** @internal 내부 사용을 위한 floatingPortalId */ __floatingPortalId?: string; } export declare function convertOldAlertModalProps(props: OldAlertModalProps): AlertModalProps; export declare function convertOldAlertProps(props: OldAlertModalProps): AlertModalProps; export interface OldConfirmModalProps extends Omit { cancelText?: string; onCancel?: () => void | Promise; cancelButtonProps?: OldModalButtonProps; autoFocusButton?: ConfirmModalProps['autoFocusButton']; } export declare function convertOldConfirmModalProps(props: OldConfirmModalProps): ConfirmModalProps; export declare function convertOldConfirmProps(props: OldConfirmModalProps): ConfirmModalProps; export interface OldFloatingModalProps extends Omit, OldOverlayProps { /** @deprecated closable을 대신 사용해주세요. */ closeButton?: boolean; /** @deprecated onBack을 대신 사용해주세요. */ onClickBackButton?: () => void; confirmButtonProps?: OldModalButtonProps; cancelButtonProps?: OldModalButtonProps; } export declare function convertOldFloatingModalProps(props: OldFloatingModalProps): FloatingModalProps; export interface OldNoticeModalProps extends Omit, OldOverlayProps { /** @deprecated description을 대신 사용해주세요. */ text?: NoticeModalProps['description']; /** @deprecated checked를 대신 사용해주세요. */ checkReplay?: boolean; /** @deprecated checkboxLabel을 대신 사용해주세요. */ checkReplayText?: string; /** @deprecated onCheckedChange를 대신 사용해주세요. */ onChangeCheckReplay?: NoticeModalProps['onCheckedChange']; } export declare function convertOldNoticeModalProps(props: OldNoticeModalProps): NoticeModalProps; export {};