import React from "react"; import type { ElementType, ReactNode } from "react"; /** * Basic implementation of a UI Service to match how Web handles dialogs. * The important part is that the `displayDialog()` method has a similar enough signature * to allow Web to call its version. */ export declare class UIService { private _DialogComponent; private _children; private resolve; private root; private readonly rootElementId; /** * Creates a new UIService * @param rootElementId The id of the element in the DOM that will contain the dialog. */ constructor(rootElementId: string); closeDialog: () => void; displayDialog: (children: (closeDialog: () => void) => ReactNode, DialogComponent: ElementType) => Promise; renderDialog: (open: boolean) => null | undefined; wrapProviders: (content: React.JSX.Element) => React.JSX.Element; }