UNPKG

714 BTypeScriptView Raw
1import * as React from 'react';
2import { Message } from '../widgets';
3import { AbstractDialog, DialogProps } from '../dialogs';
4import { Root } from 'react-dom/client';
5export declare abstract class ReactDialog<T> extends AbstractDialog<T> {
6 protected contentNodeRoot: Root;
7 protected isMounted: boolean;
8 constructor(props: DialogProps);
9 protected onUpdateRequest(msg: Message): void;
10 /**
11 * Render the React widget in the DOM.
12 * - If the widget has been previously rendered,
13 * any subsequent calls will perform an update and only
14 * change the DOM if absolutely necessary.
15 */
16 protected abstract render(): React.ReactNode;
17}
18//# sourceMappingURL=react-dialog.d.ts.map
\No newline at end of file