import React from 'react'; export interface ModalState { /** If modalType is modal, render this component at the modalRoot */ modalComponent?: React.ReactNode; /** The type of modal to display */ modalType: 'modal' | 'flyout' | 'drawer'; /** An ID used to identify which flyout to display */ modalId?: string; /** Called when a modal is requested */ showTarget(...args: any[]): void; /** Called when a modal is dismissed */ hideTarget(...args: any[]): void; /** Whether a modal is open */ isOpen: boolean; /** props to be passed on to the displayed modalComponent */ props?: any; } export interface ModalContextProps { /** Called when a modal is requested */ showTarget(...args: any[]): void; /** Called when a modal is dismissed */ hideTarget(...args: any[]): void; modals: ModalState[]; } declare const ModalContext: React.Context; export default ModalContext;