import { Dispatch } from "react"; export type PopupElement = React.ReactElement; export type PopupOptions = { closableOverlay: boolean; }; export type PopupPackage = { element: PopupElement; options: PopupOptions; }; export type PopupList = readonly PopupPackage[]; export type PopupAction = { type: "add" | "remove"; alterPopups: PopupList; }; export type PopupDispatch = Dispatch; type PopupActions = { dispatchPopups: PopupDispatch; onCloseVisiblePopup: () => void; }; export declare const PopupStateContext: import("react").Context; export declare function useOpenPopup(): (popup: PopupElement, pOptions?: PopupOptions) => void; export declare function useCloseLastPopup(): () => void; export {};