import React from 'react'; import type { RootProps } from './Root'; import { IScopedContext } from './Scoped'; import { IRootStore } from './store/root'; import { ActionObject } from './types'; export interface RootRendererProps extends RootProps { location?: any; data?: Record; context?: Record; render: (region: string, schema: any, props: any) => React.ReactNode; } export declare class RootRenderer extends React.Component { store: IRootStore; static contextType: React.Context; constructor(props: RootRendererProps); componentDidMount(): void; componentDidUpdate(prevProps: RootRendererProps): void; componentDidCatch(error: any, errorInfo: any): void; componentWillUnmount(): void; handlePageVisibilityChange(): void; handleAction(e: React.UIEvent | void, action: ActionObject, ctx: object, throwErrors?: boolean, delegate?: IScopedContext): any; dispatchEvent(e: string | React.MouseEvent, data: any, renderer?: React.Component, scoped?: IScopedContext): Promise>; handleDialogConfirm(values: object[], action: ActionObject, ...args: Array): void; handleDialogClose(confirmed?: boolean): void; handleDrawerConfirm(values: object[], action: ActionObject, ...args: Array): void; handleDrawerClose(): void; openFeedback(dialog: any, ctx: any): Promise; reloadTarget(scoped: IScopedContext, target: string, data?: any): void; renderRuntimeError(): React.ReactNode; renderSpinner(): React.ReactNode; renderError(): React.ReactNode; renderDialog(): React.ReactNode; renderDrawer(): React.ReactNode; render(): string | number | boolean | React.JSX.Element | Iterable | null | undefined; }