import { Ref } from 'react';
/** State management for nested modals. */
declare class ModalManager {
    modals: any[];
    add: (modal: any) => number;
    remove: (modal: any) => any[];
    isTopModal: (modal: any) => boolean;
}
export declare const manager: ModalManager;
/** Refs of new modals will be automatically added/removed from the state when rendering. */
export declare function useModalManager(ref: Ref<any>, isOpen?: boolean, disableScrollLock?: boolean): void;
export {};
//# sourceMappingURL=modalManager.d.ts.map