import { PayloadAction } from '@reduxjs/toolkit'; import type { ASTAttrs, ASTContainerNode, ASTType } from '../../ast/types'; export declare type ASTState = ASTContainerNode; export declare const astInitialState: ASTContainerNode; export declare const astSlice: import("@reduxjs/toolkit").Slice, action: { payload: { targetPath: string; type: ASTType; nodeId: string; cupName: string; attrs?: Record | undefined; }; type: string; }): void; /** * Insert after ast node */ insertAfter(state: import("immer/dist/internal").WritableDraft, action: { payload: { targetPath: string; type: ASTType; nodeId: string; cupName: string; attrs?: Record | undefined; }; type: string; }): void; appendChildren(state: import("immer/dist/internal").WritableDraft, action: { payload: { targetPath: string; type: ASTType; nodeId: string; cupName: string; attrs?: Record | undefined; }; type: string; }): void; /** * remove node from tree by id */ removeById(state: import("immer/dist/internal").WritableDraft, action: { payload: { nodeId: string; }; type: string; }): void; /** * Move node by path */ moveByPath(state: import("immer/dist/internal").WritableDraft, action: { payload: { fromPath: string; toPath: string; }; type: string; }): void; /** * Set Node Attrs * * new attrs will append or override origin attrs */ setNodeAttrs(state: import("immer/dist/internal").WritableDraft, action: { payload: { nodeId: string; newAttrs: ASTAttrs; }; type: string; }): void; }, "ast">; export declare const insertBefore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{ targetPath: string; type: ASTType; nodeId: string; cupName: string; attrs?: Record | undefined; }, string>, insertAfter: import("@reduxjs/toolkit").ActionCreatorWithPayload<{ targetPath: string; type: ASTType; nodeId: string; cupName: string; attrs?: Record | undefined; }, string>, appendChildren: import("@reduxjs/toolkit").ActionCreatorWithPayload<{ targetPath: string; type: ASTType; nodeId: string; cupName: string; attrs?: Record | undefined; }, string>, removeById: import("@reduxjs/toolkit").ActionCreatorWithPayload<{ nodeId: string; }, string>, moveByPath: import("@reduxjs/toolkit").ActionCreatorWithPayload<{ fromPath: string; toPath: string; }, string>, setNodeAttrs: import("@reduxjs/toolkit").ActionCreatorWithPayload<{ nodeId: string; newAttrs: ASTAttrs; }, string>;