import { type ReactNode } from 'react';
import type { SlotIconComponent } from '../../../types/side-slot';
import { type FeaturedIconColor, type FeaturedIconTheme } from '../../image-and-icons/featured-icon';
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
type ModalHeaderAlign = 'left' | 'center' | 'horizontal';
type ModalActionsAlign = 'left' | 'center' | 'right' | 'stretch';
type ModalActionsLayout = 'vertical' | 'horizontal' | 'checkbox';
type ModalProps = {
isOpen: boolean;
onClose: () => void;
size?: ModalSize;
children: ReactNode;
closeOnBackdropClick?: boolean;
closeOnEsc?: boolean;
className?: string;
zIndex?: number;
};
declare const Modal: {
({ isOpen, onClose, children, size, closeOnBackdropClick, closeOnEsc, className, zIndex, ...restProps }: ModalProps): import("react").ReactPortal | null;
Header({ children, onClose, featuredIcon, title, subtitle, align, showDivider, hideCloseButton, }: ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
Content({ children, className }: ModalContentProps): import("react/jsx-runtime").JSX.Element;
/**
* Modal.Actions - The actions area of the modal
*
* Examples:
*
* 1. Vertical layout (buttons stacked):
*
*
*
*
*
* 2. Horizontal layout (buttons side by side):
*
*
*
*
*
* 3. Checkbox layout (checkbox on left, buttons on right):
*
*
* Settings
* >
* }>
*
*
*
*/
Actions({ children, layout, showDivider, align, checkboxContent, className, }: ModalActionsProps): import("react/jsx-runtime").JSX.Element;
};
type ModalHeaderProps = {
children?: ReactNode;
onClose: () => void;
featuredIcon?: {
icon: SlotIconComponent;
color: FeaturedIconColor;
theme: FeaturedIconTheme;
};
align?: ModalHeaderAlign;
title?: string | ReactNode;
subtitle?: string | ReactNode;
showDivider?: boolean;
hideCloseButton?: boolean;
};
type ModalContentProps = {
children: ReactNode;
className?: string;
};
type ModalActionsProps = {
className?: string;
children: ReactNode;
layout?: ModalActionsLayout;
showDivider?: boolean;
align?: ModalActionsAlign;
checkboxContent?: ReactNode;
};
export type { ModalSize, ModalHeaderAlign, ModalActionsAlign, ModalActionsLayout, ModalProps, ModalHeaderProps, ModalContentProps, ModalActionsProps, };
export { Modal };