import type { FC, KeyboardEvent, MouseEvent, ReactNode } from "react"; import { type ModalHeaderProps } from "./ModalHeader"; import { type ModalFooterProps } from "./ModalFooter"; export type ModalSize = "dialog-small" | "dialog-medium" | "small" | "medium" | "wide"; export type ModalBaseProps = Omit & { children: ReactNode; size?: ModalSize; withExtraMarginTop?: boolean; withContentPaddingY?: boolean; isOpen?: boolean; title?: string; dataTestId?: string; scrollableContent?: boolean; /** * Automatically set the max height of the content area based on the viewport height, while preserving vertical margins. * Useful for when content height is variable. */ autoMaxContentHeight?: boolean; onCloseClick: (event: MouseEvent | KeyboardEvent) => void; } & ModalFooterProps; export declare const ModalBase: FC;