import type { RefObject } from "react";
import React from "react";
import type sizes from "./ModalSizes.module.css";
import type { ModalContextType } from "./Modal.types";
export declare const ModalContext: React.Context<ModalContextType>;
export interface ModalProviderProps {
    readonly children: React.ReactNode;
    readonly size?: keyof typeof sizes;
    readonly open?: boolean;
    readonly onRequestClose?: () => void;
    readonly activatorRef?: RefObject<HTMLElement | null>;
    readonly dismissible?: boolean;
    readonly modalLabelledBy?: string;
    readonly ariaLabel?: string;
}
export declare function ModalProvider({ children, open, size, onRequestClose, activatorRef: refProp, dismissible, modalLabelledBy, ariaLabel, }: ModalProviderProps): React.JSX.Element;
export declare function useModalContext(): ModalContextType;
