1 | import { Node } from "domhandler";
|
---|
2 | import { DomSerializerOptions } from "dom-serializer";
|
---|
3 | /**
|
---|
4 | * @param node Node to get the outer HTML of.
|
---|
5 | * @param options Options for serialization.
|
---|
6 | * @deprecated Use the `dom-serializer` module directly.
|
---|
7 | * @returns `node`'s outer HTML.
|
---|
8 | */
|
---|
9 | export declare function getOuterHTML(node: Node | Node[], options?: DomSerializerOptions): string;
|
---|
10 | /**
|
---|
11 | * @param node Node to get the inner HTML of.
|
---|
12 | * @param options Options for serialization.
|
---|
13 | * @deprecated Use the `dom-serializer` module directly.
|
---|
14 | * @returns `node`'s inner HTML.
|
---|
15 | */
|
---|
16 | export declare function getInnerHTML(node: Node, options?: DomSerializerOptions): string;
|
---|
17 | /**
|
---|
18 | * Get a node's inner text. Same as `textContent`, but inserts newlines for `<br>` tags.
|
---|
19 | *
|
---|
20 | * @deprecated Use `textContent` instead.
|
---|
21 | * @param node Node to get the inner text of.
|
---|
22 | * @returns `node`'s inner text.
|
---|
23 | */
|
---|
24 | export declare function getText(node: Node | Node[]): string;
|
---|
25 | /**
|
---|
26 | * Get a node's text content.
|
---|
27 | *
|
---|
28 | * @param node Node to get the text content of.
|
---|
29 | * @returns `node`'s text content.
|
---|
30 | * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent}
|
---|
31 | */
|
---|
32 | export declare function textContent(node: Node | Node[]): string;
|
---|
33 | /**
|
---|
34 | * Get a node's inner text.
|
---|
35 | *
|
---|
36 | * @param node Node to get the inner text of.
|
---|
37 | * @returns `node`'s inner text.
|
---|
38 | * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/innerText}
|
---|
39 | */
|
---|
40 | export declare function innerText(node: Node | Node[]): string;
|
---|
41 | //# sourceMappingURL=stringify.d.ts.map |
---|