import { IDMLDocumentContext } from '../idml.js'; import { ElementNode } from '../util/xml.js'; import { CharacterStyle, CharacterStyleInput } from './CharacterStyle.js'; import { ParagraphStyle, ParagraphStyleInput } from './ParagraphStyle.js'; import { ObjectStyle } from './ObjectStyle.js'; import { SuperController } from './SuperController.js'; export type IDMLStylesContext = IDMLDocumentContext & { stylesRoot: HTMLElement; }; export declare class IDMLStylesController extends SuperController { src: string; static elementsImplemented: string[]; characterStyles: CharacterStyle[]; paragraphStyles: ParagraphStyle[]; objectStyles: ObjectStyle[]; private context; constructor(src: string, raw: string, topContext: IDMLDocumentContext); /** * Create a new object style by cloning an existing one's full DOM node (so * the new style inherits a complete, valid structure — all the nested * children InDesign expects). The clone is inserted into the live * RootObjectStyleGroup, so it round-trips through the normal passthrough. * Defaults to cloning `[None]`. */ createObjectStyle(opts?: { name?: string; basedOnId?: string; cloneFromId?: string; }): ObjectStyle; createParagraphStyle(paragraphStyle: ParagraphStyleInput): ParagraphStyle; createCharacterStyle(characterStyle: CharacterStyleInput): CharacterStyle; serialize(): ElementNode; } //# sourceMappingURL=Styles.d.ts.map