import type { ModalContextType, ModalProviderProps } from './ModalContext.types'; /** * Hook to access the modal context. * Must be used within a ModalProvider component. * * @returns The modal context containing openModal and closeModal functions * @throws Error if used outside of a ModalProvider * * @example * ```tsx * function MyComponent() { * const { openModal, closeModal } = useModalContext(); * * const handleOpenModal = () => { * openModal('my-modal', MyModalComponent, { title: 'Hello' }); * }; * * return ; * } * ``` */ export declare const useModalContext: () => ModalContextType; /** * Provider component that manages modal state and renders modal instances. * Wraps child components with modal context and renders all active modals. * * @param props - The provider props * @param props.children - Child components that will have access to modal context * * @example * ```tsx * function App() { * return ( * * * * ); * } * ``` */ export declare const ModalProvider: ({ children }: ModalProviderProps) => import("react/jsx-runtime").JSX.Element;