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; localCharacterStyleInput: CharacterStyleInput; }; export type ParagraphStyleRange = { appliedParagraphStyle: string; features: CharacterStyleRange[]; sourceElement?: Element; localParagraphStyleInput: ParagraphStyleInput; }; export type ParagraphOutput = { appliedParagraphStyle?: ParagraphStyleInput; localParagraphStyle?: ParagraphStyleInput; features: { appliedCharacterStyle?: CharacterStyleInput; localCharacterStyleInput?: CharacterStyleInput; content: string; }[]; }; 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(): ParagraphOutput[]; static getParagraphsFromInput(paragraphs: ParagraphInput[], context: IDMLBackingStoryContext): ParagraphStyleRange[]; setPagaraphs(paragraphs: ParagraphInput[]): void; serializeContent(content: string): import("../util/xml.js").ElementNode[]; serialize(tagName: 'Story' | 'XmlStory'): import("../util/xml.js").ElementNode; static parseInCopyExportOption(element: Element): InCopyExportOption; static storyPreferenceFromElement(element: Element): StoryPreference; static parseCharacterStyleRange(element: Element, context: IDMLBackingStoryContext): CharacterStyleRange; static parseParagraphStyleRange(element: Element, context: IDMLBackingStoryContext): ParagraphStyleRange; static parseElement(element: Element, context: IDMLBackingStoryContext): Story; } //# sourceMappingURL=Story.d.ts.map