import React from "react"; export interface ModalContextProps { /** Set that a specific modal is currently being open (or closed) */ setModalOpen: (modalId: string, isOpen: boolean) => void; /** The currently opened modals ordered by when they have been opened. Oldest coming first. */ openModalStack(): string[] | undefined; } /** Can be provided in the application to react to modal related changes. */ export declare const ModalContext: React.Context; /** Checks if the given modal context is provided by the application, so it really tracks open modals. * Without a provided context the modals cannot know about each other. **/ export declare const isModalContextProvided: (modalContext: ModalContextProps) => boolean; /** Default implementation for modal context props. * Tracks open modals in a stack representation. **/ export declare const useModalContext: () => ModalContextProps;