UNPKG

bulletpoints

Version:
28 lines (27 loc) 1.15 kB
import ParagraphProperties, { ParagraphPropertiesOptions } from './paragraph-properties'; import RunProperties, { RunPropertiesOptions } from './run-properties'; import Relations from '../relations'; interface FragmentConfig { text: string; fieldType?: string; options?: ParagraphPropertiesOptions & RunPropertiesOptions; } export declare type FragmentOptions = string | number | FragmentConfig[]; export declare const buildFragments: (inputText: FragmentOptions, inputBreakLine: boolean, relations: Relations) => any; export default class TextFragment { text: string; paragraphConfig: ParagraphProperties; runConfig: RunProperties; constructor(text: string, paragraphConfig: ParagraphProperties, runConfig: RunProperties); render(presLayout: any): string; } export declare class FieldFragment { text: string; fieldType: string; fieldId: string; paragraphConfig: ParagraphProperties; runConfig: RunProperties; constructor(text: string, fieldType: string, paragraphConfig: ParagraphProperties, runConfig: RunProperties); render(presLayout: any): string; } export {};