import { Ref } from 'react'; /** * Handle the order of the modals. * Inspired by the material-ui implementation. */ export declare const modalManager: { /** * Register a new modal */ add: (newModal: Ref) => void; /** * Remove a modal */ remove: (oldModal: Ref) => void; /** * When multiple modals are rendered will return true if current modal is the last one */ isTopModal: (modal: Ref) => boolean; }; export declare function useModalManager(ref: Ref, open: boolean): void;