import type { FC, ReactNode, MouseEvent, KeyboardEvent } from "react"; import ReactModal from "react-modal"; import { type PrimaryButtonProps } from "../ButtonV2/ButtonProps.type"; import { FullPageModalActions } from "./subcomponents/FullPageModalActions"; export type FullPageModalProps = { children: ReactNode; isOpen?: boolean; title: string; dataTestId?: string; /** * @deprecated * Use the `actions` prop to render any button(s) * or other component(s) automatically in the correct area. * * This prop will only render a button when the actions prop is omitted. * The actions prop takes precedence over this prop if they're both passed. */ primaryButtonProps?: PrimaryButtonProps; /** * Render buttons or other action components in the area meant for actions. * To correctly space out the actions wrap them in a FullPageModal.Actions component. * @usage * ```tsx * * * * * } * /> */ actions?: ReactNode; onCloseClick: (event: MouseEvent | KeyboardEvent) => void; }; type StaticComponents = { Actions: typeof FullPageModalActions; setAppElement: typeof ReactModal.setAppElement; }; export declare const FullPageModal: FC & StaticComponents; export {};