import type { ModalSizeOptionsType } from './types.js'; import { AriaLabelingProps } from '../../core/types/a11y-props.js'; import { DataTestId } from '../../core/types/data-props.js'; import { MaskingProps } from '../../core/types/masking-props.js'; import { StylingProps } from '../../core/types/styling-props.js'; import { WithChildren } from '../../core/types/with-children.js'; /** * @public */ export interface BaseModalProps extends AriaLabelingProps, WithChildren, DataTestId, MaskingProps, StylingProps { /** * Controls when the modal is shown. * @defaultValue false */ show?: boolean; /** * Sets the size of the modal. * @defaultValue 'medium' */ size?: ModalSizeOptionsType; /** Handler function that is called when the modal is closed. */ onDismiss?: () => void; /** * Determines if you can click the backdrop to dismiss the modal. * If true, pressing "ESC" also dismisses the modal. * @defaultValue true */ dismissible?: boolean; } /** * BaseModal component * @internal */ export declare const BaseModal: (props: BaseModalProps & { 'data-dt-component'?: string; } & import("react").RefAttributes) => import("react").ReactElement | null;