import { Plugin, HeadlessEditor } from '../HeadlessEditor'; import { JsonNode } from '../types'; /** * A function called after each udpate which that accepts three arguments: * * - data the latest data of the web form * - root the rootNode of the json-editor and * - editor the current editor instance */ export type OnChangeListener = (data: Data, root: JsonNode, editor: HeadlessEditor) => void; export type OnChangeOptions = { /** add custom plugin-id to avoid collisions with different OnChangePlugins */ pluginId?: string; /** add onChange callback to get notified after something (data, schema, errors, etc) changed */ onChange?: OnChangeListener; }; /** * Add onChange callback after update events */ export declare const OnChangePlugin: Plugin;