UNPKG

site-metadata-extractor

Version:
14 lines (13 loc) 1.08 kB
import type { Cheerio, CheerioAPI } from "cheerio"; import type { AnyNode } from "domhandler"; export declare const addNewlineToBr: (doc: CheerioAPI, topNode: Cheerio<AnyNode>) => CheerioAPI; export declare const cleanParagraphText: (rawText: string) => string; export declare const convertToText: (doc: CheerioAPI, topNode: Cheerio<AnyNode>) => string; export declare const linksToText: (doc: CheerioAPI, topNode: Cheerio<AnyNode>) => CheerioAPI; export declare const removeFewWordsParagraphs: (doc: CheerioAPI, topNode: Cheerio<AnyNode>, lang: string) => CheerioAPI; export declare const removeNegativescoresNodes: (doc: CheerioAPI, topNode: Cheerio<AnyNode>) => CheerioAPI; export declare const replaceCharacters: (text: string, html: boolean, chars: boolean) => string; export declare const replaceWithText: (doc: CheerioAPI, topNode: Cheerio<AnyNode>) => CheerioAPI; export declare const ulToText: (doc: CheerioAPI, node: Cheerio<AnyNode>) => string; declare const formatter: (doc: CheerioAPI, topNode: Cheerio<AnyNode>, lang: string) => string; export default formatter;