UNPKG

uhtml

Version:
61 lines (60 loc) • 2.35 kB
/** @typedef {import("./attribute.js").Attribute} Attribute */ export default class Document extends Parent { constructor(type?: string); /** @type {globalThis} */ get defaultView(): typeof globalThis; /** @type {import("./document-type.js").default?} */ get doctype(): import("./document-type.js").default | null; /** @type {import("./element.js").default?} */ get documentElement(): import("./element.js").default | null; /** @type {import("./element.js").default?} */ get head(): import("./element.js").default | null; /** @type {import("./element.js").default?} */ get body(): import("./element.js").default | null; /** @type {Attribute} */ createAttribute(name: any): Attribute; /** @type {import("./comment.js").default} */ createComment(data: any): Comment; /** @type {import("./document-fragment.js").default} */ createDocumentFragment(): DocumentFragment; /** @type {import("./element.js").default} */ createElement(name: any, options?: null): Element; /** @type {import("./svg-element.js").default} */ createElementNS(_: any, name: any): SVGElement; /** @type {globalThis.Range} */ createRange(): Range; /** @type {import("./text.js").default} */ createTextNode(data: any): Text; /** @type {globalThis.TreeWalker} */ createTreeWalker(parent: any, accept: any): TreeWalker; /** * Same as `document.importNode` * @template T * @param {T} externalNode * @param {boolean} deep * @returns {T} */ importNode<T>(externalNode: T, deep?: boolean): T; toString(): any; [documentElement]: any; [doctype]: any; [head]: any; [body]: any; [childNodes]: any; } export type Attribute = import("./attribute.js").Attribute; import Parent from './parent.js'; import Attribute from './attribute.js'; import Comment from './comment.js'; import DocumentFragment from './document-fragment.js'; import Element from './element.js'; import SVGElement from './svg-element.js'; import Range from './range.js'; import Text from './text.js'; import TreeWalker from './tree-walker.js'; import { documentElement } from './symbols.js'; declare const doctype: unique symbol; declare const head: unique symbol; declare const body: unique symbol; import { childNodes } from './symbols.js'; export {};