import type { DSLNodeType, RootNodeType } from '@lingxiteam/dsl'; import type { DSLQuery } from '@lingxiteam/dsl/lib/core/DSLQuery'; /** * @description 往dom节点后面插入一个新节点 * @param {*} newElement 新节点 * @param {*} targetElement 参照节点,在此节点后插入新节点 */ declare const insertAfter: (newElement: Element, targetElement: Element) => void; /** * 添加固定占位节点 * @param targetElement */ declare const appendChild: (targetElement?: Element | null, spaceBlock?: Element) => void; declare const getElementByDataId: (dataId: string, className: string) => Element | null; declare const addClass: (dom?: Element | null, className?: string) => void; declare const removeClassAllDom: (className: string) => void; declare const setAttributes: (dom: Element, attribute?: any) => void; declare const removeAttributes: (dom: Element, keys?: string[]) => void; declare const getAttributesByKeys: (dom: Element, keys?: string[]) => string[]; declare const getBoundingClientRect: (dataId: string, className: string) => DOMRect | { left: number; right: number; width: number; height: number; }; /** * 插入空白节点 * @param param0 */ declare const insertSpaceBlock: ({ parentNode, index, DSLCore, itemClassName, spaceBlock, }: { parentNode?: DSLNodeType | RootNodeType | null | undefined; index: number; DSLCore?: DSLQuery | undefined; itemClassName: string; spaceBlock: Element; }) => void; export { insertAfter, appendChild, getElementByDataId, removeClassAllDom, addClass, setAttributes, removeAttributes, getAttributesByKeys, getBoundingClientRect, insertSpaceBlock, };