UNPKG

react-hoc-modal

Version:
18 lines (17 loc) 729 B
import { MutableRefObject, RefObject } from "react"; import type { TContainerContext, TModalConfigAction } from "./types"; export type FooterMountStatus = undefined | 'render' | 'mount'; export declare const ProviderContext: import("react").Context<TContainerContext>; export declare const ContainerContext: import("react").Context<{ hide: () => void; setFooter: (status: FooterMountStatus) => void; listeners: { current: { onHide: () => void; }; }; initPosition: MutableRefObject<DOMRect | undefined>; footer: FooterMountStatus; footerRef: RefObject<HTMLDivElement | undefined>; }>; export declare const WithModalContext: import("react").Context<TModalConfigAction<any>>;