import { LineAttributes, Paragraph, ParsedQuillDelta, RawQuillDelta, TextRun } from "quilljs-parser"; export interface LineAttr extends LineAttributes { citation?: boolean; } export interface QParagraph extends Paragraph { attributes?: LineAttr; } export type RawOrParsedDelta = RawQuillDelta | ParsedQuillDelta | RawQuillDelta[] | ParsedQuillDelta[]; export interface StyleInfo { font: string; fontSize: number; baseIndent: number; levelIndent: number; italics?: boolean; indent?: { left?: number; right?: number; }; } export interface Style { [index: string]: StyleInfo; normal: StyleInfo; header_1: StyleInfo; header_2: StyleInfo; block_quote: StyleInfo; code_block: StyleInfo; list_paragraph: StyleInfo; citation: StyleInfo; } export interface StyleConfig { [index: string]: Partial; normal: Partial; header_1: Partial; header_2: Partial; block_quote: Partial; code_block: Partial; list_paragraph: Partial; citation: Partial; } export interface Config { styles?: Partial; } export interface TextBase { font: string; fontSize: number; indent?: number; } export type Runs = (TextRun | { formula: string})[];