import { IDMLBackingStoryContext } from './BackingStory.js'; import { ParagraphStyleInput } from './ParagraphStyle.js'; import { CharacterStyleInput } from './CharacterStyle.js'; export type ParagraphInput = { paragraphStyle: ParagraphStyleInput; features: { characterStyle: CharacterStyleInput; content: string; }[]; }; export type FrameType = 'textFrame' | 'graphicFrame' | 'unassignedFrame'; export type StoryOrientation = 'horizontal' | 'vertical'; export type StoryDirection = 'leftToRight' | 'rightToLeft'; export type StoryPreference = { opticalMarginAlignment: boolean; opticalMarginSize: number; frameType: FrameType; orientation: StoryOrientation; direction: StoryDirection; }; export type InCopyExportOption = { includeGraphicProxies: boolean; includeAllResources: boolean; }; export type CharacterStyleRange = { appliedCharacterStyle: string; otfContextualAlternate: boolean; content: string; sourceElement?: Element; }; export type ParagraphStyleRange = { appliedParagraphStyle: string; features: CharacterStyleRange[]; sourceElement?: Element; }; export declare class Story { id: string; private paragraphs; private context; private userText?; private title?; private storyPreference?; private inCopyExportOption?; constructor(id: string, paragraphs: ParagraphStyleRange[], opts: { userText?: boolean; title?: string; storyPreference?: StoryPreference; inCopyExportOption?: InCopyExportOption; }, context: IDMLBackingStoryContext); getParagraphs(toInput?: boolean): { appliedParagraphStyle: import("./ParagraphStyle.js").ParagraphStyle | { appliedFont: string | undefined; fontSize: number | undefined; leading: number | undefined; align: import("./ParagraphStyle.js").Align | undefined; fillColor: import("../idml.js").ColorInput | undefined; strokeColor: import("../idml.js").ColorInput | undefined; strokeWeight: number | undefined; strokeTint: number | undefined; skew: number | undefined; capitalization: import("./ParagraphStyle.js").Capitalization | undefined; fontStyle: string | undefined; underline: boolean | undefined; strikeThrough: boolean | undefined; } | undefined; features: { appliedCharacterStyle: import("./CharacterStyle.js").CharacterStyle | { appliedFont: string | undefined; fontStyle: string | undefined; fontSize: number | undefined; fillColor: import("../idml.js").ColorInput | undefined; strokeColor: import("../idml.js").ColorInput | undefined; strokeWeight: number | undefined; tracking: number | undefined; leading: number | undefined; underline: boolean | undefined; strikeThrough: boolean | undefined; } | undefined; content: string; }[]; }[]; static getParagraphsFromInput(paragraphs: ParagraphInput[], context: IDMLBackingStoryContext): { appliedParagraphStyle: string; features: { appliedCharacterStyle: string; otfContextualAlternate: boolean; content: string; }[]; }[]; setPagaraphs(paragraphs: ParagraphInput[]): void; serializeContent(content: string): import("flat-svg").ElementNode[]; serialize(tagName: 'Story' | 'XmlStory'): import("flat-svg").ElementNode; static parseInCopyExportOption(element: Element): InCopyExportOption; static storyPreferenceFromElement(element: Element): StoryPreference; static parseCharacterStyleRange(element: Element): CharacterStyleRange; static parseParagraphStyleRange(element: Element): ParagraphStyleRange; static parseElement(element: Element, context: IDMLBackingStoryContext): Story; } //# sourceMappingURL=Story.d.ts.map