import type {Nodes, Paragraph, Root, Sentence} from 'nlcst' import type {Plugin} from 'unified' // See `parse-latin`. type Extension = (node: Node) => undefined | void /** * Add support for parsing English natural language. * * @this * Unified processor. * @returns * Nothing. */ declare const retextEnglish: Plugin<[], string, Root> export default retextEnglish // Add custom data supported when `retext-english` is added. declare module 'unified' { interface Data { /** * List of extensions to transform paragraph nodes. */ nlcstParagraphExtensions?: Array> /** * List of extensions to transform root nodes. */ nlcstRootExtensions?: Array> /** * List of extensions to transform sentence nodes. */ nlcstSentenceExtensions?: Array> } }