import { ReactNode } from 'react'; import type { Styles } from '@cleartrip/ct-design-types'; import type { IModalProps } from '@cleartrip/ct-design-modal'; export type OverlayCloseIconProps = { show: boolean; isBack?: boolean; isCenter?: boolean; isTop?: boolean; showCloseIcon?: boolean; }; export interface IStyleConfigProps { root?: Styles[]; modalContentStyles?: Styles[]; modalWrapperStyles?: Styles[]; } export interface IDialogProps extends IModalProps { styleConfig?: IStyleConfigProps; overlayCloseIcon?: OverlayCloseIconProps; allowBackdropClose?: boolean; } export interface IDialogContentProps { headIcon?: ReactNode; title: ReactNode; description?: ReactNode; styleConfig?: { root?: Styles[]; }; } import { DialogAlignmentTypes, DialogTypes } from './constants'; export type DialogAlignmentType = `${DialogAlignmentTypes}`; export type DialogType = `${DialogTypes}`; export interface IDialogAction { label: ReactNode; onClick: (e?: Event) => void; type?: DialogType; styleConfig?: { root?: Styles[]; }; } export interface IDialogActionProps { alignment?: DialogAlignmentType; actionButtons: IDialogAction[]; styleConfig?: { root?: Styles[]; }; } export type DialogProps = IDialogProps; export type DialogContentProps = IDialogContentProps; export type DialogActionProps = IDialogActionProps; export type DialogAction = IDialogAction; //# sourceMappingURL=type.d.ts.map