import React from 'react'; declare type PopupConfig = { len: number; popups: Record; isPopupChildVisible?: boolean; onTogglePopupChildVisible?: (id: number, visible: number) => void; onRegister?: (id?: number) => void; onUnRegister?: (id?: number) => void; }; export declare const defaultPopupConfig: PopupConfig; export declare const PopupContext: React.Context; declare type PopupConfigProps = { id: React.RefObject; }; export declare const usePopup: (props: PopupConfigProps) => PopupConfig; export {};