import { type IntrinsicElement, type ValueElement } from "../element/common"; /** Create a shallow DOM element based on the passed intrinsic element or primitive value. * @returns A non-text DOM element (without children) when passed an intrinsic element (that possibly has children); * A text DOM element when passed a primitive value */ export declare function createDOMShallow(eltUI: LeafElement): DOMElement | DocumentFragment | Text; /** Set a property on a DOM element to a value, in a DOM-idiomatic way. */ export declare function setAttribute(args: { domElt: DOMElement; attribName: string; attribVal: unknown; }): void; export declare const isTextDOM: (node: Node) => node is Text; /** Empty a node of child nodes */ export declare function emptyContainer(container: Node): void; /** Get ids of peak DOM elements among a list of elements in a tree */ export declare function getApexElementIds(elementIds: string[]): string[]; /** Get peak DOM elements among a list of elements in a tree */ export declare function getApexElements(elements: DOMElement[]): DOMElement[]; export type LeafElement = IntrinsicElement | ValueElement; export type DOMElement = SVGElement | HTMLElement;