import { RenderStructure, RenderStructureNode } from '@/types/builder/structure';
import { Component } from '@/types/component';
import { VisualEditorConfig } from '../common';
import { DndData } from '../dnd';
import { BuilderWindow, BuilderWindowChangeOptions } from '../window';
export declare type BuilderData = {
    structure?: RenderStructure;
    components?: Component[];
    config?: VisualEditorConfig;
    selectNode?: RenderStructureNode | null;
};
/**
 * foxpage builder postmessage events, child <-> root
 * developer will select to use by self
 */
export interface FoxBuilderEvents {
    onInit?: (data: BuilderData) => void;
    onChange?: (data: BuilderData) => void;
    onSelectComponent?: (component: RenderStructureNode | null) => void;
    onUpdateComponent?: (component: RenderStructureNode) => void;
    onRemoveComponent?: (component: RenderStructureNode) => void;
    onCopyComponent?: (component: RenderStructureNode) => void;
    onDropComponent?: (dndInfo: DndData) => void;
    onWindowChange?: (target: BuilderWindow, opt?: BuilderWindowChangeOptions) => void;
    onLinkChange?: (target: string, opt?: {}) => void;
}
