import React from 'react'; import { BasePlugin, RegionConfig, EditorNodeType, BuildPanelEventContext, BasicPanelItem, PluginEvent, ChangeEventContext } from 'amis-editor-core'; import type { RendererConfig, Schema } from 'amis-core'; import { ModalProps } from 'amis-ui/lib/components/Modal'; interface InlineModalProps extends ModalProps { type: string; children: any; dialogType?: string; cancelText?: string; confirmText?: string; cancelBtnLevel?: string; confirmBtnLevel?: string; editorDialogMountNode?: HTMLDivElement; } export declare class DialogPlugin extends BasePlugin { static id: string; rendererName: string; $schema: string; name: string; isBaseComponent: boolean; wrapperProps: { wrapperComponent: typeof InlineModal; onClose: any; show: boolean; }; regions: Array; events: { eventName: string; eventLabel: string; description: string; dataSchema: { type: string; properties: { data: { type: string; title: string; description: string; }; }; }[]; }[]; actions: any[]; panelTitle: string; panelJustify: boolean; panelBodyCreator: (context: BaseEventContext) => any; afterUpdate(event: PluginEvent): void; buildSubRenderers(): void; /** * dialog 高亮区域应该是里面的内容 */ wrapperResolve(dom: HTMLElement): HTMLElement | Array; buildDataSchemas(node: EditorNodeType, region?: EditorNodeType, trigger?: EditorNodeType): Promise; /** * 为了让 dialog 的按钮可以点击编辑 */ patchSchema(schema: Schema, info: RendererConfig, props?: any): any; buildEditorPanel(context: BuildPanelEventContext, panels: Array): void; } export declare class InlineModal extends React.Component { componentDidMount(): void; render(): React.JSX.Element; } export {};