import type { ConfirmModal2Props, Modal2Props, Modal2Slots } from '../types';
export type FunctionModalProps = Omit<Modal2Props, 'open'>;
export type FunctionConfirmModalProps = Omit<ConfirmModal2Props, 'open'>;
export type PartialModalSlots = Partial<Modal2Slots>;
export interface ModalInstance {
    id: string;
    open: () => void;
    close: () => void;
    destroy: () => void;
    isOpen: () => boolean;
}
export declare class ModalManager {
    private readonly modals;
    private escapeHandler;
    private getOpenModals;
    private setupEscapeListener;
    private removeEscapeListener;
    private checkEscapeListener;
    private create;
    modal(props?: FunctionModalProps, slots?: PartialModalSlots): ModalInstance;
    private createConfirmModal;
    info(props?: FunctionConfirmModalProps): ModalInstance;
    success(props?: FunctionConfirmModalProps): ModalInstance;
    warning(props?: FunctionConfirmModalProps): ModalInstance;
    error(props?: FunctionConfirmModalProps): ModalInstance;
    closeAll(): void;
    destroyAll(): void;
}
export declare const modalManager: ModalManager;
