declare type TextNode = Text & { $value: unknown; }; /** * Shorthand for `elem.appendChild()` for better minification */ export declare function appendChild(element: Element, node: Node): Node; /** * Creates element with given tag name * @param cssScope Scope for CSS isolation */ export declare function elem(tagName: string, cssScope?: string): Element; /** * Creates element with given tag name under `ns` namespace * @param cssScope Scope for CSS isolation */ export declare function elemNS(tagName: string, ns: string, cssScope?: string): Element; /** * Creates element with given tag name and text * @param cssScope Scope for CSS isolation */ export declare function elemWithText(tagName: string, value: string, cssScope?: string): Element; /** * Creates element with given tag name under `ns` namespace and text * @param cssScope Scope for CSS isolation */ export declare function elemNSWithText(tagName: string, ns: string, value: string, cssScope?: string): Element; /** * Creates text node with given value */ export declare function text(value: string): TextNode; /** * Updates given text node value, if required * @returns Returns `1` if text was updated, `0` otherwise */ export declare function updateText(node: TextNode, value: unknown): number; /** * Isolates given element with CSS scope */ export declare function isolateElement(el: T, cssScope: string): T; /** * @returns Inserted item */ export declare function domInsert(node: T, parent: Node, anchor?: Node): T; /** * Removes given DOM node from its tree */ export declare function domRemove(node: Node): void; export {}; /** * Returns textual representation of given `value` object */