import type { PostextConfig } from '../types.js'; import type { WordDocument } from './model.js'; import type { WordTemplate } from './template.js'; export interface StyleUse { name: string; count: number; /** First words of the first paragraph (or run) in the style. */ sample: string; } export type FindingId = 'allNormal' | 'directFormatting' | 'manualHeadings' | 'lineBreaks' | 'pageBreaks' | 'emptyParagraphs' | 'typedNumbering' | 'spacing' | 'trackedChanges' | 'comments' | 'textBoxes' | 'unsupportedPictures' | 'equations' | 'hiddenText'; export interface QualityFinding { id: FindingId; count: number; /** A few paragraphs it was found in (first words). */ examples: string[]; severity: 'info' | 'warn'; } export type QualityVerdict = 'clean' | 'mixed' | 'plain'; export interface QualityReport { verdict: QualityVerdict; /** Paragraphs with text (body and text boxes). */ paragraphs: number; /** Of those, how many are in a style other than the default body ones. */ styled: number; paragraphStyles: StyleUse[]; characterStyles: StyleUse[]; pictures: number; tables: number; footnotes: number; findings: QualityFinding[]; } export declare function analyzeDocx(doc: WordDocument, template: WordTemplate, config: PostextConfig): QualityReport; //# sourceMappingURL=analyze.d.ts.map