import { type HTMLAttributes, type ReactNode } from 'react';
/**
* @public
*/
export interface ModalContextProviderProps extends HTMLAttributes {
children: ReactNode;
}
/**
* The ModalProvider keeps track of how many modals are open in its descendants.
* The implementation of addModal() here increases
* the count of modal levels. Elsewhere, the useModal hook calls addModal().
* Likewise, when the modal is unmounted, removeModal() is called and the count is
* correspondingly decreased by the implementation here.
*
* If the modalCount is greater than zero then `aria-hidden` is added to
* hide the contents outside the modal from screen readers. We use a React
* context for the purpose of tracking.
* @public
*/
export declare function ModalContextProvider(props: ModalContextProviderProps): import("react/jsx-runtime.js").JSX.Element;