import React from "react";
import { BoxProps } from "../../components/Box";
export interface ModalCoreProps {
    isOpen?: boolean;
    onDismiss?: () => void;
    closeOnOverlayClick?: boolean;
    children?: React.ReactNode;
}
export declare const ModalCoreContext: React.Context<{
    onDismiss?: (() => void) | undefined;
}>;
export type UseModalCoreProps = ReturnType<typeof useModalCore>;
export declare function useModalCore(): {
    onDismiss: () => void;
    onOpen: () => void;
    isOpen: boolean;
    setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
};
export declare function ModalCore({ isOpen, onDismiss, closeOnOverlayClick, children, disableOutsidePointerEvents, ...props }: ModalCoreProps & BoxProps & {
    disableOutsidePointerEvents?: boolean;
}): React.ReactPortal | null;
