UNPKG

@lifeart/gxt

Version:

<img align="right" width="95" height="95" alt="Philosopher’s stone, logo of PostCSS" src="./public/logo.png">

21 lines (19 loc) • 883 B
import { DOMApi } from '../dom-api'; export declare class HTMLRehydrationBrowserDOMApi implements DOMApi { doc: Document; constructor(doc: Document); isNode(el: Node): el is Node; parent(el: Node): HTMLElement | null; destroy(element: Node): void; clearChildren(element: Node): void; toString(): string; addEventListener(node: Node, eventName: string, fn: EventListener): (() => void) | undefined; prop(element: HTMLElement, name: string, value: any): any; attr(element: HTMLElement, name: string, value: string | null): void; comment(text?: string): Comment; text(text?: string | number): Node; textContent(node: Node, text: string): void; fragment(): DocumentFragment; element(tagName?: string): HTMLElement; insert(parent: HTMLElement | Node, child: HTMLElement | Node, anchor?: HTMLElement | Node | null): void; }