import { VirtScriptObject } from "../script/virt"; import { VirtualElementSourceInfo, VirtualNode } from "./virt"; export declare enum ActionKind { ReplaceNode = "ReplaceNode", InsertChild = "InsertChild", DeleteChild = "DeleteChild", SetAttribute = "SetAttribute", SetElementSourceInfo = "SetElementSourceInfo", SetAnnotations = "SetAnnotations", SourceUriChanged = "SourceUriChanged", SetText = "SetText", SetElementSourceId = "SetElementSourceId", RemoveAttribute = "RemoveAttribute" } export declare type BaseAction = { kind: TKind; }; export declare type ReplaceNode = { replacement: VirtualNode; } & BaseAction; export declare type InsertChild = { child: VirtualNode; index: number; } & BaseAction; export declare type DeleteChild = { index: number; } & BaseAction; export declare type SetAttribute = { name: string; value?: string; } & BaseAction; export declare type SetElementSourceInfo = { value: VirtualElementSourceInfo; } & BaseAction; export declare type SetElementSourceId = { value: string; } & BaseAction; export declare type SetAnnotations = { value?: VirtScriptObject; } & BaseAction; export declare type RemoveAttribute = { name: string; } & BaseAction; export declare type SetText = { value: string; } & BaseAction; export declare type Action = ReplaceNode | InsertChild | DeleteChild | SetElementSourceInfo | SetAttribute | SetAnnotations | SetElementSourceId | SetText | RemoveAttribute; export declare type Mutation = { nodePath: number[]; action: Action; };