import React from 'react'; import { ModalProps } from '../../components/modal/modal.js'; type ModalServiceContextType = { modalProps: ModalProps; setModalProps: (props: ModalProps) => void; }; /** * Can be set to allow access to and update `modalProps`, which is used by `ModalService`. */ declare const ModalServiceContext: React.Context; /** * Service that implements `ModalServiceContext` and maps it to a `Modal`. This is required for e.g. `useDialog()` and * friends. * @param children * @constructor */ declare const ModalService: React.FC; export { ModalService, ModalServiceContext }; export type { ModalServiceContextType };