/** This covers both strings and TrustedHTML. */
interface StringLike {
toString(): string;
}
export declare function htmlToText(nodeOrHtml: Node | StringLike): string;
export declare function nodeToText(node: Node): string;
export declare function nodeToLines(node: Node): Iterable;
export declare function isOnlyCollapsibleWhitespace(text: string): boolean;
export {};