import type { Block } from "@prismicio/types-internal/lib/content"; import { RichText, RichTextNodeType } from "@prismicio/types-internal/lib/customtypes"; import type { MockConfig } from "../../../MockConfig"; export declare type RichTextMockPattern = keyof typeof Patterns; export interface RichTextMockConfig extends MockConfig> { nbBlocks?: number; pattern?: RichTextMockPattern; } export declare const Patterns: { PARAGRAPH: { title: string; test: (options: ReadonlyArray) => boolean; value: () => RichTextNodeType[]; description: string; loremConfig: { readonly sentencesPerParagraph: { readonly min: 1; readonly max: 3; }; readonly wordsPerSentence: { readonly min: 4; readonly max: 16; }; }; }; HEADING: { title: string; test: (options: ReadonlyArray) => boolean; value: (options: ReadonlyArray) => RichTextNodeType[]; description: string; loremConfig: { readonly sentencesPerParagraph: { readonly min: 1; readonly max: 3; }; readonly wordsPerSentence: { readonly min: 4; readonly max: 16; }; }; }; STORY: { title: string; test: (options: ReadonlyArray) => boolean; value: (options: ReadonlyArray) => RichTextNodeType[]; description: string; loremConfig: { readonly sentencesPerParagraph: { readonly min: 1; readonly max: 3; }; readonly wordsPerSentence: { readonly min: 4; readonly max: 16; }; }; }; TABLE_HEADER: { title: string; test: (options: ReadonlyArray) => boolean; value: () => RichTextNodeType[]; description: string; loremConfig: { sentencesPerParagraph: { min: number; max: number; }; wordsPerSentence: { min: number; max: number; }; }; }; TABLE_CELL: { title: string; test: (options: ReadonlyArray) => boolean; value: () => RichTextNodeType[]; description: string; loremConfig: { sentencesPerParagraph: { min: number; max: number; }; wordsPerSentence: { min: number; max: number; }; }; }; }; export declare const RichTextMockConfig: { INITIAL_CONFIG: { pattern: { title: string; test: (options: ReadonlyArray) => boolean; value: () => RichTextNodeType[]; description: string; loremConfig: { readonly sentencesPerParagraph: { readonly min: 1; readonly max: 3; }; readonly wordsPerSentence: { readonly min: 4; readonly max: 16; }; }; }; blocks: number; }; isHeading: (type: string) => boolean; isText: (type: string) => boolean; isImage: (type: string) => boolean; optionalType: (options: ReadonlyArray, type: RichTextNodeType) => RichTextNodeType[]; findMatchingPattern: (options: ReadonlyArray) => { title: string; test: (options: ReadonlyArray) => boolean; value: (options: ReadonlyArray) => RichTextNodeType[]; description: string; loremConfig: { readonly sentencesPerParagraph: { readonly min: 1; readonly max: 3; }; readonly wordsPerSentence: { readonly min: 4; readonly max: 16; }; }; } | { title: string; test: (options: ReadonlyArray) => boolean; value: () => RichTextNodeType[]; description: string; loremConfig: { sentencesPerParagraph: { min: number; max: number; }; wordsPerSentence: { min: number; max: number; }; }; }; generateText: (contentType: string, loremConfig: { sentencesPerParagraph: { min: number; max: number; }; wordsPerSentence: { min: number; max: number; }; }) => string; };