import type { Dimension, PostextConfig } from '../types.js'; import type { WordDocument } from './model.js'; import type { ParagraphTarget, WordTemplate } from './template.js'; /** The tracking of one Word paragraph style, on the Postext style it becomes. */ export interface StyleTracking { /** The Word style's name, as stored. */ style: string; /** Where it goes: a paragraph style, a heading style or level, or the title of a callout type. */ target: Extract; /** In em of the style's own size (`0.02em` = 2 % of the size). */ letterSpacing: Dimension; } /** * The tracking each paragraph style in use sets (own or inherited), on the * Postext style it maps to under `template`. A style that sets none, or * sets it to zero, is left out; so is a style that goes to body text, a * quote, a caption or anything else with no style of its own to carry it. * Where two Word styles go to the same Postext style, the one with more * paragraphs wins. */ export declare function wordStyleTracking(doc: WordDocument, template: WordTemplate, config: PostextConfig): StyleTracking[]; /** * `config` with the tracking set on each style it names that sets none of * its own: a paragraph style, a heading style, a heading level (an entry * is added to `headings.levels` when the level has none) or the title of a * listed callout style. Nothing the book already sets is changed. `applied` * lists what was set; `skipped` what the book already tracks, or has no * style for. */ export declare function applyStyleTracking(config: PostextConfig, tracking: readonly StyleTracking[]): { config: PostextConfig; applied: StyleTracking[]; skipped: StyleTracking[]; }; //# sourceMappingURL=tracking.d.ts.map