>;
/** Describes the modal for assistive technology; renders a ``. */
export declare const ModalDescription: import("react").ForwardRefExoticComponent & import("react").RefAttributes>;
declare const sizeClasses: {
readonly sm: 'w-[400px]';
readonly md: 'w-[480px]';
readonly lg: 'w-[560px]';
readonly xl: 'w-[672px]';
};
export type ModalSize = keyof typeof sizeClasses;
export interface ModalProps extends Omit {
open: boolean;
onClose: () => void;
/** The header's heading, which names the modal. Without one, name it with
* `aria-label`, or with a `ModalTitle` among the children. */
title?: ReactNode;
/** A line under the title, which describes the modal. */
description?: ReactNode;
/** Actions along the bottom edge, such as Cancel and Save, ruled off from the
* body; they stay in view as a tall body scrolls. */
footer?: ReactNode;
/** Its width, which narrows to fit a small window. Without one, it's as wide
* as its content. */
size?: ModalSize | undefined;
/** A confirmation the person must answer: it takes the alertdialog role and the
* backdrop doesn't close it. Escape still cancels while it's dismissible. */
alert?: boolean | undefined;
/** False ignores the backdrop and Escape, so typed input isn't lost to a stray
* click; the modal's own buttons still close it. */
dismissible?: boolean | undefined;
/** Where the panel sits: near the top of the window, or in its middle. */
align?: 'top' | 'center' | undefined;
/** Draws the default panel surface around `className`. */
panel?: boolean;
/** The backdrop's dimming, for a modal that needs a darker or blurred stage. */
backdropClassName?: string;
/** Adds a close button at the header's end, for a modal whose footer doesn't close it,
* such as one that only shows something. It needs no title. */
closeButton?: boolean | undefined;
/** Makes the header, body and footer one form, so a `type="submit"` button in the footer
* submits it, as Enter in a field does. The page never reloads: its default is prevented. */
onSubmit?: ((event: FormEvent) => void) | undefined;
/** On the panel. */
className?: string;
/** The body. With a title or a footer it sits padded between them and scrolls
* when the window is short; without either, it is the whole panel. */
children?: ReactNode;
}
/** A modal dialog: focus stays inside, the page behind is inert and doesn't scroll,
* and focus returns to where it was on close. Give it a `title`, a `description`
* and a `footer` for the standard layout, as a Drawer has, or lay out the whole
* panel with the children. */
export declare function Modal({ open, onClose, title, description, footer, size, alert, dismissible, align, panel, backdropClassName, closeButton, onSubmit, className, children, initialFocus, ...popupProps }: ModalProps): import("react").JSX.Element;
export {};