import React from 'react'; export interface ModalCurtainProps { /** * Content that appears on top of the curtain. `children` is a [render * prop](https://reactjs.org/docs/render-props.html) and expects a function. The function * provided receives an object two properties: * * * `curtainClassName`: Handles positioning, z-index, opacity, overflow, and visibility. * Should be added to the `className` of the outermost element within the `children`. * * `curtainOnClick`: You can optionally add this prop to the `onClick` of an element within * `children`. This is typically used on to close a ModalCurtain when clicking on a dark * backdrop. * * The examples on this page include code samples that demonstrate real use of these props. */ children?: ({ curtainClassName, curtainOnClick, }: { curtainClassName: string; curtainOnClick: (event: React.MouseEvent) => void; }) => JSX.Element; /** * The four states that a modal can be in. * * * `exited` – Modal is fully closed * * `entering` – Modal is opening * * `entered` – Modal has fully open * * `exiting` – Modal is closing * * Modals that do not have transitions will only use the `entered` and `exited` stages. */ stage?: 'entering' | 'entered' | 'exiting' | 'exited' | null; /** * Accessibility title used to describe the content of the modal to screen readers. */ accessibilityLabel?: string; /** * Function that fires to close the modal. */ onCloseClick: () => void; /** * Determines if the modal should close when pressing the escape key. */ shouldCloseOnEscape?: boolean; /** * The element that should be focused when the modal opens. If omitted, the entire container * element of the modal is focused. */ initialFocus?: HTMLElement | null; } export default function ModalCurtain({ stage, shouldCloseOnEscape, accessibilityLabel, initialFocus: initialFocusProp, onCloseClick, children, }: ModalCurtainProps): JSX.Element; //# sourceMappingURL=index.d.ts.map