import React from "react"; export type alignActionsType = "left" | "right" | "center"; export interface genHeaderProps { title: string; subtitle: string; setAnimPos: React.Dispatch>; linkTo: string; onClose: () => void; initAnimPos: { marginTop: string; opacity: number; }; invert: boolean; dynamicHeaderHeight?: boolean; } export interface ModalProps { title: string; onClose: () => void; children: React.ReactNode; linkTo?: string; desktopWidth?: string; headerStyle?: "style1" | "style2"; subtitle?: string; fitToContentHeight?: boolean; invert?: boolean; overflowVisible?: boolean; hideBackdrop?: boolean; showActionPanel?: boolean; onCloseText?: string; onConfirm?: React.MouseEventHandler | React.ReactNode; showCloseBtn?: boolean; onConfirmText?: string; showConfirmBtn?: boolean; alignActions?: alignActionsType; disableHeader?: boolean; dynamicHeaderHeight?: boolean; } /** * @component Renders a modal component with customizable title, content, and actions. * * - The props object containing the following properties: * @prop {string} title: The title of the modal. * @prop {() => void} onClose: A callback function to be called when the close button is clicked. * @prop {React.ReactNode} children: The content to be rendered inside the modal body. * @prop {string} [linkTo]: An optional link for the modal. * @prop {string} [desktopWidth]: The width of the modal on desktop screens. Defaults to "80%". * @prop {('style1' | 'style2')} [headerStyle]: The style of the modal header. Defaults to "style1". * @prop {string} [subtitle]: The subtitle of the modal. * @prop {boolean} [fitToContentHeight]: A boolean indicating whether the modal height should be adjusted based on its content. Defaults to false. * @prop {boolean} [invert]: A boolean indicating whether to invert the background color of the modal. Defaults to false. * @prop {boolean} [overflowVisible]: A boolean indicating whether the modal should render its overflow as visible. Defaults to false. * @prop {boolean} [hideBackdrop]: A boolean indicating whether to make the modal's own backdrop transparent (the click-to-close layer is kept). Use when the caller renders its own backdrop behind the modal. Defaults to false. * @prop {boolean} [showActionPanel]: A boolean indicating whether to render the action panel. Defaults to false. * @prop {string} [onCloseText]: The text to be displayed in the close button. Defaults to "Close". * @prop {React.MouseEventHandler | React.ReactNode} [onConfirm]: A callback function or node to be rendered instead of the confirm button. * @prop {boolean} [showCloseBtn]: A boolean indicating whether to render the close button. Defaults to true. * @prop {string} [onConfirmText]: The text to be displayed in the confirm button. Defaults to "Confirm". * @prop {boolean} [showConfirmBtn]: A boolean indicating whether to render the confirm button. Defaults to false. * @prop {('left' | 'right' | 'center')} [alignActions]: The alignment of the action buttons. Defaults to "right". * @prop {boolean} [disableHeader]: A boolean indicating whether to render the header. Defaults to false. * @prop {boolean} [dynamicHeaderHeight]: A boolean indicating whether the header (style1) should take a fixed height of 4rem or increase height flexibly as per the text within it. Defaults to false. * @return {ReactElement} The rendered modal component. */ export declare const Modal: React.FunctionComponent;