import { Block, Inline } from '@contentful/rich-text-types'; export interface Options { /** * Strip empty trailing paragraph from the document */ stripEmptyTrailingParagraph?: boolean; } /** * Returns the text value of a rich text document. * * NB: This can be applied to non text node of a structured text document, * hence the flexible typing. */ export declare function documentToPlainTextString(rootNode: Block | Inline, blockDivisor?: string, options?: Options): string;