import { ModalProps, ModalShowProps } from "./interface";
export interface ModalHandler {
    info: (message: ModalShowProps) => string;
    error: (message: ModalShowProps) => string;
    success: (message: ModalShowProps) => string;
    warning: (message: ModalShowProps) => string;
    show: (message: ModalShowProps) => string;
    update: (modalId: string, modal: ModalShowProps) => void;
    close: (modalId: string) => void;
    getModalById: (modalId: string) => ModalProps | undefined;
}
export interface SubListener {
    listenerId: string;
    onStoreChange: () => void;
}
export interface ModalStoreHandler {
    getModals: () => ModalShowProps[];
    setModals: (modals: ModalShowProps[]) => void;
    subscribe: (onStoreChange: () => void) => SubListener;
    unSubscribe: (listenerId: string) => void;
    add: (modal: ModalShowProps) => void;
    remove: (modalId: string) => void;
    update: (modalId: string, modal: ModalShowProps) => void;
}
export interface ModalStore {
    listener: SubListener[];
    modals: ModalShowProps[];
}
export declare const modalStore: ModalStoreHandler;
