import { StyleDefinition, StylesDocumentProperties } from '@superdoc/style-engine/ooxml'; import { AttributesDiff } from './attributes-diffing'; /** * Structured diff for style document metadata and style definitions. */ export interface StylesDiff { /** Diff for `docDefaults`. */ docDefaultsDiff: AttributesDiff | null; /** Diff for `latentStyles`. */ latentStylesDiff: AttributesDiff | null; /** Styles present only in the new style snapshot. */ addedStyles: Record; /** Styles present only in the old style snapshot. */ removedStyles: Record; /** Diffs for style definitions present in both snapshots. */ modifiedStyles: Record; } /** * Computes a diff between two style snapshots. * * @param oldStyles Previous style snapshot. * @param newStyles Updated style snapshot. * @returns Style diff or `null` when no changes are detected. */ export declare function diffStyles(oldStyles: StylesDocumentProperties | null | undefined, newStyles: StylesDocumentProperties | null | undefined): StylesDiff | null; //# sourceMappingURL=styles-diffing.d.ts.map