/**
 * Copyright 2023-present DreamNum Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import type { ImageSourceType } from '../../services/image-io/image-io.service';
import type { IResources } from '../../services/resource-manager/type';
import type { ISize } from '../../shared/shape';
import type { BooleanNumber, CellValueType, HorizontalAlign, LocaleType, TextDirection, VerticalAlign, WrapStrategy } from '../enum';
import type { IDrawingParam } from './i-drawing';
import type { IMention } from './i-mention';
import type { IColorStyle, IGlowEffect, IShadowEffect, IStyleBase } from './i-style-data';
/**
 * Properties of document
 */
export interface IDocumentData extends IReferenceSource {
    /** unit ID */
    id: string;
    /** Revision of this document. Would be used in collaborated editing. Starts with zero. */
    rev?: number;
    locale?: LocaleType;
    title?: string;
    body?: IDocumentBody;
    /** Independent rich-text segments addressed by footnote or endnote references in the main body. */
    notes?: Record<string, IDocumentNote>;
    noteSettings?: INoteSettings;
    documentStyle: IDocumentStyle;
    /** OOXML-compatible named document styles keyed by stable style id. */
    styles?: IDocStyles;
    settings?: IDocumentSettings;
    resources?: IResources;
    disabled?: boolean;
}
export interface IReferenceSource {
    tableSource?: ITables;
    footers?: IFooters;
    headers?: IHeaders;
    footnotes?: Record<string, IDocxNoteStory>;
    endnotes?: Record<string, IDocxNoteStory>;
    lists?: ILists;
    drawings?: IDrawings;
    drawingsOrder?: string[];
    headerFooterDrawingsOrder?: string[];
}
export interface IDocumentSettings {
    zoomRatio?: number;
}
/** Settings inherit from the document into each section; absent values do not reset inheritance. */
export interface IFootnoteProperties {
    position?: 'pageBottom' | 'beneathText';
    /** OOXML ST_NumberFormat name, shared by the import/export and numbering engines. */
    numberFormat?: string;
    startNumber?: number;
    restart?: 'continuous' | 'eachSect' | 'eachPage';
    /** Zero matches the body section's column count. */
    columnCount?: number;
}
export interface IFootnoteSettings extends IFootnoteProperties {
    separator?: IDocumentBody;
    continuationSeparator?: IDocumentBody;
    continuationNotice?: IDocumentBody;
}
export type DocumentNoteType = 'footnote' | 'endnote';
export interface IEndnoteProperties extends Omit<IFootnoteProperties, 'position' | 'restart' | 'columnCount'> {
    position?: 'docEnd' | 'sectEnd';
    restart?: 'continuous' | 'eachSect';
}
export interface IEndnoteSettings extends IEndnoteProperties {
    separator?: IDocumentBody;
    continuationSeparator?: IDocumentBody;
    continuationNotice?: IDocumentBody;
}
export interface INoteSettings {
    footnote?: IFootnoteSettings;
    endnote?: IEndnoteSettings;
}
export interface INoteProperties {
    footnote?: IFootnoteProperties;
    endnote?: IEndnoteProperties;
}
/** Notes have editable content, but no independent page setup or nested notes. */
export interface IDocumentNote {
    noteId: string;
    type: DocumentNoteType;
    body: IDocumentBody;
    tableSource?: ITables;
    drawings?: IDrawings;
    drawingsOrder?: string[];
    lists?: ILists;
    /** Custom marks do not consume a number in the automatic sequence. */
    customMark?: string;
    /** Style of the generated note marker; it does not affect text inserted at body offset zero. */
    referenceTextStyle?: ITextStyle;
    /** False preserves an imported note body without a reference marker; the main-story anchor is unaffected. */
    showBodyReference?: boolean;
}
export type IFootnoteCustomRange = ICustomRange<{
    noteId: string;
}>;
/** A note story keyed by its OOXML id, independently of its displayed number. */
export interface IDocxNoteStory {
    noteId: string;
    type: 'normal' | 'separator' | 'continuationSeparator' | 'continuationNotice';
    body: IDocumentBody;
    tableSource?: ITables;
}
/**
 * Set of headers
 */
export interface IHeaders {
    [headerId: string]: IHeaderData;
}
/**
 * Set of footer
 */
export interface IFooters {
    [footerId: string]: IFooterData;
}
export interface ITables {
    [tableId: string]: ITable;
}
/**
 * Set of lists
 */
export interface ILists {
    [listType: string]: IListData;
}
/**
 * Set of Drawings
 */
export interface IDrawings {
    [drawingId: string]: IDocDrawingBase;
}
/**
 * Set of IStyles
 */
export interface IDocStyles {
    [styleId: string]: IDocStyle;
}
/**
 * Properties of document body
 * Contain three update types: range overlay, range mutual exclusion, and placeholder
 * \v COLUMN_BREAK
 * \f PAGE_BREAK
 * \0 DOCS_END
 * \t TAB
 *
 * Needs to be changed：
 * \r PARAGRAPH
 * \n SECTION_BREAK
 *
 * \b customBlock: Scenarios where customBlock, images, mentions, etc. do not participate in the document flow.
 *
 * Table
 * \x1A table start
 * \x1B table row start
 * \x1C table cell start
 * \x1D table cell end
 * \x1E table row end
 * \x1F table end
 *
 * Special ranges within the document flow:：hyperlinks，field，structured document tags， bookmark，comment
 * \x1F customRange start
 * \x1E customRange end
 */
export interface IDocumentBody {
    dataStream: string;
    /**
     * UTF-16 offsets of soft page-break tokens (`\f`) produced by the layout engine that last
     * saved the source document. Renderers may honor them for traditional/paginated fidelity;
     * exporters must keep them soft rather than converting them to authored page breaks.
     */
    renderedPageBreaks?: number[];
    textRuns?: ITextRun[];
    paragraphs?: IParagraph[];
    sectionBreaks?: ISectionBreak[];
    customBlocks?: ICustomBlock[];
    /**
     * Opaque DOCX runs represented by custom-block sentinels for lossless round-trip.
     * They participate in text offsets like regular custom blocks but are not rendered as drawings.
     */
    docxRawCustomBlocks?: ICustomBlock[];
    /** Opaque DOCX XML anchored at a document offset for lossless round-trip. */
    docxRawBlocks?: IDocxRawBlock[];
    /** Document ranges excluded from generated DOCX content because their raw XML is preserved separately. */
    docxExportExcludedRanges?: IDocxExportExcludedRange[];
    tables?: ICustomTable[];
    columnGroups?: ICustomColumnGroup[];
    blockRanges?: IDocumentBlockRange[];
    customRanges?: ICustomRange[];
    customDecorations?: ICustomDecoration[];
    /**
     * for copy/paste, data of custom-range and other module
     * it won't save to disk
     */
    payloads?: Record<string, string>;
}
/**
 * The top-level block types in a document body.
 * These block types are used to represent the structure of the document and can be used to identify different sections or elements within the document.
 */
export declare enum DocumentBlockType {
    PARAGRAPH = "paragraph",
    BLOCK_RANGE = "blockRange",
    TABLE = "table",
    CUSTOM_BLOCK = "customBlock",
    COLUMN_GROUP = "columnGroup"
}
export interface IDocStyle {
    name: string;
    basedOn?: string;
    link?: string;
    type: DocStyleType;
    textStyle?: ITextStyle;
    paragraphStyle?: IParagraphStyle;
}
export declare enum DocStyleType {
    character = 0,
    paragraph = 1,
    table = 2,
    numbering = 3
}
/**
 * Properties of doc footer
 */
export interface IFooterData extends IReferenceSource {
    footerId: string;
    body: IDocumentBody;
}
/**
 * Properties of doc header
 */
export interface IHeaderData extends IReferenceSource {
    headerId: string;
    body: IDocumentBody;
}
/**
 * The properties of a list which describe the look and feel of bullets belonging to paragraphs associated with a list.
 */
export interface IListData {
    listType: string;
    nestingLevel: INestingLevel[];
}
/**
 * Contains properties describing the look and feel of a list bullet at a given level of nesting.
 */
export interface INestingLevel {
    paragraphProperties?: IParagraphStyle;
    bulletAlignment: BulletAlignment;
    glyphFormat: string;
    textStyle?: ITextStyle;
    startNumber: number;
    glyphType?: ListGlyphType;
    glyphSymbol?: string;
    /** Display all numbered placeholders as decimal values, matching Word's w:isLgl. */
    isLegal?: boolean;
}
/**
 * Follow the space after the list
 */
export declare enum FollowNumberWithType {
    TAB = 0,
    SPACE = 1,
    NOTHING = 2
}
/**
 * An enumeration of the supported glyph types.
 */
export declare enum ListGlyphType {
    BULLET = 0,// The glyph type is unspecified or unsupported.
    NONE = 1,// An empty string.
    DECIMAL = 2,// A number, like 1, 2, or 3.
    DECIMAL_ZERO = 3,// A number where single digit numbers are prefixed with a zero, like 01, 02, or 03. Numbers with more than one digit are not prefixed with a zero.
    UPPER_LETTER = 4,// An uppercase letter, like A, B, or C.
    LOWER_LETTER = 5,// A lowercase letter, like a, b, or c.
    UPPER_ROMAN = 6,// An uppercase Roman numeral, like I, II, or III.
    LOWER_ROMAN = 7,// A lowercase Roman numeral, like i, ii, or iii.
    /**
     * Not yet achieved, aligned with Excel's standards.
     * 17.18.59 ST_NumberFormat (Numbering Format)
     */
    ORDINAL = 8,
    CARDINAL_TEXT = 9,
    ORDINAL_TEXT = 10,
    HEX = 11,
    CHICAGO = 12,
    IDEOGRAPH_DIGITAL = 13,
    JAPANESE_COUNTING = 14,
    AIUEO = 15,
    IROHA = 16,
    DECIMAL_FULL_WIDTH = 17,
    DECIMAL_HALF_WIDTH = 18,
    JAPANESE_LEGAL = 19,
    JAPANESE_DIGITAL_TEN_THOUSAND = 20,
    DECIMAL_ENCLOSED_CIRCLE = 21,
    DECIMAL_FULL_WIDTH2 = 22,
    AIUEO_FULL_WIDTH = 23,
    IROHA_FULL_WIDTH = 24,
    GANADA = 25,
    CHOSUNG = 26,
    DECIMAL_ENCLOSED_FULLSTOP = 27,
    DECIMAL_ENCLOSED_PAREN = 28,
    DECIMAL_ENCLOSED_CIRCLE_CHINESE = 29,
    IDEOGRAPH_ENCLOSED_CIRCLE = 30,
    IDEOGRAPH_TRADITIONAL = 31,
    IDEOGRAPH_ZODIAC = 32,
    IDEOGRAPH_ZODIAC_TRADITIONAL = 33,
    TAIWANESE_COUNTING = 34,
    IDEOGRAPH_LEGAL_TRADITIONAL = 35,
    TAIWANESE_COUNTING_THOUSAND = 36,
    TAIWANESE_DIGITAL = 37,
    CHINESE_COUNTING = 38,
    CHINESE_LEGAL_SIMPLIFIED = 39,
    CHINESE_COUNTING_THOUSAND = 40,
    KOREAN_DIGITAL = 41,
    KOREAN_COUNTING = 42,
    KOREAN_LEGAL = 43,
    KOREAN_DIGITAL2 = 44,
    VIETNAMESE_COUNTING = 45,
    RUSSIAN_LOWER = 46,
    RUSSIAN_UPPER = 47,
    NUMBER_IN_DASH = 48,
    HEBREW1 = 49,
    HEBREW2 = 50,
    ARABIC_ALPHA = 51,
    ARABIC_ABJAD = 52,
    HINDI_VOWELS = 53,
    HINDI_CONSONANTS = 54,
    HINDI_NUMBERS = 55,
    HINDI_COUNTING = 56,
    THAI_LETTERS = 57,
    THAI_NUMBERS = 58,
    THAI_COUNTING = 59,
    CUSTOM = 60
}
/**
 * The types of alignment for a bullet.
 */
export declare enum BulletAlignment {
    BULLET_ALIGNMENT_UNSPECIFIED = 0,// The bullet alignment is unspecified.
    START = 1,// bullet is aligned to the start of the space allotted for rendering the bullet. Left-aligned for LTR text, right-aligned otherwise.
    CENTER = 2,// The bullet is aligned to the center of the space allotted for rendering the bullet.
    END = 3,// The bullet is aligned to the end of the space allotted for rendering the bullet. Right-aligned for LTR text, left-aligned otherwise.
    BOTH = 4
}
export interface IMargin {
    /** Top page margin in 96-DPI layout pixels. */
    marginTop?: number;
    /** Bottom page margin in 96-DPI layout pixels. */
    marginBottom?: number;
    /** Right page margin in 96-DPI layout pixels. */
    marginRight?: number;
    /** Left page margin in 96-DPI layout pixels. */
    marginLeft?: number;
}
export interface ITableOfContent {
}
export interface IHyperlink {
    url?: string;
    bookmarkId?: string;
    headingId?: string;
    /** Use authored text formatting instead of the default link color and underline. */
    textStyleMode?: 'link' | 'text';
}
/**
 * A ParagraphElement that represents a run of text that all has the same styling.
 */
export interface ITextRun {
    /** Inclusive character index of the first styled character. */
    st: number;
    /** Exclusive character boundary after the last styled character. */
    ed: number;
    sId?: string;
    ts?: ITextStyle;
}
/**
 * Block element, link like, disabled to self nested
 */
export interface ICustomRange<T extends Record<string, any> = Record<string, any>> {
    /** Inclusive index of the first character covered by this annotation. */
    startIndex: number;
    /** Inclusive index of the last character covered by this annotation. */
    endIndex: number;
    rangeId: string;
    rangeType: CustomRangeType | number;
    /**
     * display as a whole-entity
     */
    wholeEntity?: boolean;
    /**
     * properties of custom range,
     * for example, hyperlink: `{ url: string }`
     */
    properties?: T;
}
export type IHyperLinkCustomRange = ICustomRange<IHyperlink>;
/** Legacy Word form field settings. Macro names are retained as data, never executed by the SDK. */
export interface IFormFieldData {
    name?: string;
    enabled?: BooleanNumber;
    calcOnExit?: BooleanNumber;
    entryMacro?: string;
    exitMacro?: string;
    helpText?: {
        type?: 'text' | 'autoText';
        value?: string;
    };
    statusText?: {
        type?: 'text' | 'autoText';
        value?: string;
    };
    tabIndex?: number;
    textInput?: {
        type?: string;
        default?: string;
        maxLength?: number;
        format?: string;
    };
    checkBox?: {
        size?: number;
        sizeAuto?: BooleanNumber;
        default?: BooleanNumber;
        checked?: BooleanNumber;
    };
    ddList?: {
        default?: number;
        result?: number;
        entries?: string[];
    };
}
export interface IFieldRangeProperties {
    /** Original OOXML field instruction. This is the round-trip source of truth. */
    instruction: string;
    /** Upper-case first token of `instruction`, used only for field dispatch. */
    fieldType: string;
    sourceKind?: 'complex' | 'simple';
    dirty?: BooleanNumber;
    locked?: BooleanNumber;
    formData?: IFormFieldData;
    cachedResult?: string;
}
/** A field range includes its CUSTOM_RANGE_START/END sentinels and may contain nested fields. */
export type IFieldCustomRange = ICustomRange<IFieldRangeProperties> & {
    rangeType: CustomRangeType.FIELD;
    wholeEntity?: false;
};
export type SdtKind = 'richText' | 'text' | 'checkbox' | 'date' | 'dropDownList' | 'comboBox' | 'picture' | 'group' | 'repeatingSection' | 'repeatingSectionItem' | 'docPartObj';
export type SdtLock = 'unlocked' | 'sdtLocked' | 'contentLocked' | 'sdtContentLocked';
export type SdtPlacement = 'inline' | 'block' | 'table' | 'row' | 'cell' | 'header' | 'footer';
export interface ISdtListItem {
    displayText?: string;
    value: string;
}
export interface ISdtRangeProperties {
    kind: SdtKind;
    placement: SdtPlacement;
    alias?: string;
    tag?: string;
    ooxmlId?: string;
    lock?: SdtLock;
    appearance?: string;
    color?: string;
    showingPlaceholder?: boolean;
    temporary?: boolean;
    placeholder?: string;
    /** Imported OOXML placeholder reference and its original display text; not user-facing configuration. */
    placeholderDocPart?: {
        name?: string;
        text?: string;
    };
    checkbox?: {
        checked: boolean;
        checkedState?: {
            value?: string;
            font?: string;
        };
        uncheckedState?: {
            value?: string;
            font?: string;
        };
    };
    text?: {
        /** Whether a plain-text content control accepts paragraph breaks. */
        multiLine?: boolean;
    };
    date?: {
        fullDate?: string;
        format?: string;
        locale?: string;
        calendar?: string;
        storage?: string;
    };
    listItems?: ISdtListItem[];
    repeatingSection?: {
        sectionTitle?: string;
        doNotAllowInsertDelete?: boolean;
    };
    docPart?: {
        gallery?: string;
        category?: string;
        unique?: boolean;
    };
    dataBinding?: {
        prefixMappings?: string;
        xpath?: string;
        storeItemID?: string;
        /** Visible result captured during import, used to detect direct text edits. */
        cachedResult?: string;
        /** Set after a content-control interaction so export updates the bound custom XML node. */
        dirty?: boolean;
    };
    /** Original property XML retained for lossless OOXML round-trip. */
    rawSdtPr?: string;
    /** Original end-run properties retained for lossless OOXML round-trip. */
    rawSdtEndPr?: string;
}
/** A Word structured document tag. SDTs may nest and span structural table tokens. */
export type ISdtCustomRange = ICustomRange<ISdtRangeProperties> & {
    rangeType: CustomRangeType.SDT;
    wholeEntity?: false;
    properties: ISdtRangeProperties;
};
export type IMentionCustomRange = ICustomRange<IMention>;
export declare enum DocumentBlockRangeType {
    CALLOUT = "callout",
    QUOTE = "quote",
    CODE = "code"
}
export interface IDocumentBlockRange {
    /** Inclusive index that must point at a `BLOCK_START` sentinel. */
    startIndex: number;
    /** Inclusive index that must point at the matching `BLOCK_END` sentinel. */
    endIndex: number;
    blockId: string;
    blockType: DocumentBlockRangeType;
}
export declare enum CustomRangeType {
    HYPERLINK = 0,
    FIELD = 1,// 17.16 Fields and Hyperlinks
    SDT = 2,// 17.5.2 Structured Document Tags
    BOOKMARK = 3,
    COMMENT = 4,
    CUSTOM = 5,
    MENTION = 6,
    UNI_FORMULA = 7,
    FOOTNOTE = 8,
    ENDNOTE = 9,
    DELTED = 9999
}
export declare enum DocxBreakType {
    COLUMN = "column",
    TEXT_WRAPPING = "textWrapping"
}
/**
 * Custom Block
 */
export interface ICustomBlock {
    /** Index that must point at exactly one `CUSTOM_BLOCK` sentinel. */
    startIndex: number;
    blockType?: BlockType;
    blockId: string;
    /** A note reference in the body, or the matching number/rule inside a note story. */
    noteType?: 'footnote' | 'endnote' | 'separator' | 'continuationSeparator';
    noteId?: string;
    /** Original DOCX run XML retained by the exchange layer for lossless round-trip. */
    docxRawXml?: string;
    /** Original DOCX text style retained by the exchange layer for lossless round-trip. */
    docxExportTs?: ITextStyle;
}
export interface IDocxRawBlock {
    startIndex: number;
    xml: string;
}
export interface IDocxExportExcludedRange {
    start: number;
    end: number;
}
export declare enum CustomDecorationType {
    COMMENT = 0,
    DELETED = 9999
}
export interface ICustomDecoration {
    /** Inclusive index of the first decorated character. */
    startIndex: number;
    /** Inclusive index of the last decorated character. */
    endIndex: number;
    id: string;
    type: CustomDecorationType;
}
/**
 * Type of block
 */
export declare enum BlockType {
    DRAWING = 0,
    CUSTOM = 1
}
export interface IHeaderAndFooterBase {
    defaultHeaderId?: string;
    defaultFooterId?: string;
    evenPageHeaderId?: string;
    evenPageFooterId?: string;
    firstPageHeaderId?: string;
    firstPageFooterId?: string;
    useFirstPageHeaderFooter?: BooleanNumber;
    evenAndOddHeaders?: BooleanNumber;
}
export declare enum DocumentFlavor {
    UNSPECIFIED = 0,
    TRADITIONAL = 1,
    MODERN = 2,
    /** DrawingML text semantics for host-prepared shape and slide text models. */
    DRAWINGML = 3
}
/** Page border geometry is expressed in 96-DPI layout pixels. */
export interface IPageBorder {
    /** Word line/art border style name; separate from table dash patterns. */
    style?: string;
    width?: number;
    padding?: number;
    color?: IColorStyle;
}
export interface IPageBorders {
    offsetFrom?: 'page' | 'text';
    display?: 'allPages' | 'firstPage' | 'notFirstPage';
    zOrder?: 'front' | 'back';
    top?: IPageBorder;
    left?: IPageBorder;
    bottom?: IPageBorder;
    right?: IPageBorder;
}
/** Basics properties of doc style. */
export interface IDocStyleBase extends IMargin {
    pageBorders?: IPageBorders;
    pageNumberStart?: number;
    /** Page size in 96-DPI layout pixels. */
    pageSize?: ISize;
    pageOrient?: PageOrientType;
    documentFlavor?: DocumentFlavor;
    /** Distance from the page edge to the header, in 96-DPI layout pixels. */
    marginHeader?: number;
    /** Distance from the page edge to the footer, in 96-DPI layout pixels. */
    marginFooter?: number;
    renderConfig?: IDocumentRenderConfig;
}
export interface IDocumentLayout {
    defaultTabStop?: number;
    characterSpacingControl?: characterSpacingControlType;
    /** Use the legacy East Asian Word layout rules stored as OOXML `useFELayout`. */
    useFELayout?: BooleanNumber;
    /** OOXML `splitPgBreakAndParaMark`: move a trailing paragraph mark after a manual page break. */
    splitPageBreakAndParagraphMark?: BooleanNumber;
    /** Preserve the OOXML half/full-width space compatibility switch. */
    balanceSingleByteDoubleByteWidth?: BooleanNumber;
    /** Align automatic line height inside tables to the active document line grid. */
    adjustLineHeightInTable?: BooleanNumber;
    paragraphLineGapDefault?: number;
    spaceWidthEastAsian?: BooleanNumber;
    autoHyphenation?: BooleanNumber;
    consecutiveHyphenLimit?: number;
    doNotHyphenateCaps?: BooleanNumber;
    hyphenationZone?: number;
}
export declare enum GridType {
    DEFAULT = 0,
    LINES = 1,
    LINES_AND_CHARS = 2,
    SNAP_TO_CHARS = 3
}
export interface IDocumentStyle extends IDocStyleBase, IDocumentLayout, IHeaderAndFooterBase {
    /** Imported Word on/off compatibility flags, keyed by their OOXML local names. */
    compatibilityFlags?: Record<string, BooleanNumber>;
    /** Imported OOXML compatSetting values, including the Word compatibilityMode. */
    compatibilitySettings?: Record<string, string>;
    textStyle?: ITextStyle;
    /** Document-declared alternate families, tried only after the authored font is unavailable. */
    fontFamilyFallbacks?: Record<string, string>;
    defaultParagraphStyle?: IDocumentDefaultParagraphStyle;
    background?: IDocumentBackground;
}
export interface IDocumentBackground {
    source?: string;
    sourceType?: ImageSourceType;
}
/**
 * the alignment mode is returned with respect to the offset of the sheet cell,
 * because the document needs to render the layout for cells and
 * support alignment across multiple cells (e.g., horizontal alignment of long text in overflow mode).
 * The alignment mode of the document itself cannot meet this requirement,
 * so an additional renderConfig needs to be added during the rendering of the document component.
 * This means that there are two coexisting alignment modes.
 * In certain cases, such as in an editor, conflicts may arise,
 * requiring only one alignment mode to be retained.
 * By removing the relevant configurations in renderConfig,
 * the alignment mode of the sheet cell can be modified.
 * The alternative alignment mode is applied to paragraphs within the document.
 */
export interface IDocumentRenderConfig {
    verticalAlign?: VerticalAlign;
    centerAngle?: number;
    vertexAngle?: number;
    horizontalAlign?: HorizontalAlign;
    isRotateNonEastAsian?: BooleanNumber;
    background?: IColorStyle;
    wrapStrategy?: WrapStrategy;
    cellValueType?: CellValueType;
    isRenderStyle?: BooleanNumber;
    zeroWidthParagraphBreak?: BooleanNumber;
    shapeTextOpticalVerticalAlign?: BooleanNumber;
    lineWrapTolerance?: number;
}
export interface ISectionBreakBase {
    noteProperties?: INoteProperties;
    /** Defer section-end notes to the next section that does not suppress them. */
    suppressEndnotes?: boolean;
    charSpace?: number;
    linePitch?: number;
    gridType?: GridType;
    columnProperties?: ISectionColumnProperties[];
    columnSeparatorType?: ColumnSeparatorType;
    contentDirection?: TextDirection;
    sectionType?: SectionType;
    sectionTypeNext?: SectionType;
    textDirection?: TextDirectionType;
}
/**
 * Properties of section break
 */
export interface ISectionBreak extends IDocStyleBase, ISectionBreakBase, IHeaderAndFooterBase {
    /** Stable identity of the section-break metadata entry. */
    sectionId: string;
    startIndex: number;
}
/**
 * Represents how the start of the current section is positioned relative to the previous section.
 */
export declare enum SectionType {
    SECTION_TYPE_UNSPECIFIED = 0,// The section type is unspecified.
    CONTINUOUS = 1,// The section starts immediately after the last paragraph of the previous section.
    NEXT_COLUMN = 2,// The section starts in the next column, or on the next page when no column remains.
    NEXT_PAGE = 3,// The section starts on the next page.
    EVEN_PAGE = 4,// The section starts on the next even-numbered page.
    ODD_PAGE = 5
}
/**
 * The style of column separators between columns.
 */
export declare enum ColumnSeparatorType {
    COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0,// An unspecified column separator style.
    NONE = 1,// No column separator lines between columns.
    BETWEEN_EACH_COLUMN = 2
}
/**
 * Direction of text
 */
export declare enum TextDirectionType {
    NORMAL = 0,// Horizontal
    TBRL = 1,// Vertical
    LRTBV = 2
}
/**
 * Properties of section column
 */
export interface ISectionColumnProperties {
    /** Column width in 96-DPI layout pixels. */
    width: number;
    /** Trailing space after the column in 96-DPI layout pixels. */
    paddingEnd: number;
}
export interface IParagraph {
    startIndex: number;
    paragraphId: string;
    /** Collapse the following heading section in modern documents; content remains in the snapshot. */
    headingCollapsed?: boolean;
    /** Optional stable named-style reference. Direct paragraph style has higher precedence. */
    styleId?: string;
    paragraphStyle?: IParagraphStyle;
    bullet?: IBullet;
    /** Imported resolved numbering, used to distinguish later edits from unchanged inheritance. */
    sourceBullet?: IBullet | null;
    /** Imported direct numbering. Absent inherits from the style; null explicitly disables numbering. */
    directBullet?: IBullet | null;
}
export declare enum ParagraphElementType {
    TEXT_RUN = 0,
    AUTO_TEXT = 1,
    PAGE_BREAK = 2,
    COLUMN_BREAK = 3,
    FOOT_NOTE_REFERENCE = 4,
    HORIZONTAL_RULE = 5,
    EQUATION = 6,
    DRAWING = 7,
    PERSON = 8,
    RICH_LINK = 9
}
/**
 * Properties of list
 */
export interface IBullet {
    listType: string;
    listId: string;
    nestingLevel: number;
    startNumber?: number;
    image?: {
        source: string;
    };
    textStyle?: ITextStyle;
}
/**
 * Properties of Drawing
 * 20.4.2.8 inline (Inline DrawingML Object)
 * 20.4.2.15 wrapNone (No Text Wrapping)
 * 20.4.2.16 wrapPolygon (Wrapping Polygon)
 * 20.4.2.17 wrapSquare (Square Wrapping)
 * 20.4.2.18 wrapThrough (Through Wrapping)
 * 20.4.2.19 wrapTight (Tight Wrapping)
 * 20.4.2.20 wrapTopAndBottom (Top and Bottom Wrapping)
 */
export interface IDocDrawingBase extends IDrawingParam {
    drawingId: string;
    title?: string;
    description?: string;
    docTransform: IDocDrawingPosition;
    layoutType: PositionedObjectLayoutType;
    behindDoc?: BooleanNumber;
    /** Keeps the anchor constrained to its containing table cell when enabled. */
    layoutInCell?: BooleanNumber;
    /** Allows this floating object to overlap other floating objects. */
    allowOverlap?: BooleanNumber;
    /** WordprocessingML stacking order for anchored objects. */
    relativeHeight?: number;
    start?: number[];
    lineTo?: number[][];
    wrapText?: WrapTextType;
    distL?: number;
    distR?: number;
    distT?: number;
    distB?: number;
    /** Effect bounds outside the drawing box, in layout pixels (OOXML wp:effectExtent). */
    effectExtent?: {
        left?: number;
        top?: number;
        right?: number;
        bottom?: number;
    };
    /** Picture-local DrawingML size / layout size; retained on resize without changing the layout box. */
    drawingMLSizeScale?: {
        width: number;
        height: number;
    };
}
/**
 * Types of wrap text
 */
export declare enum WrapTextType {
    BOTH_SIDES = 0,
    LEFT = 1,
    RIGHT = 2,
    LARGEST = 3
}
/**
 * Controls how a positioned object participates in document text layout.
 *
 * `WRAP_NONE` does not by itself determine whether the object is in front of or behind text. Drawing data uses
 * `behindDoc` for that stacking choice.
 */
export declare enum PositionedObjectLayoutType {
    /** Places the object in the text flow like a character and lets it affect the containing line's metrics. */
    INLINE = 0,
    /** Floats the object without reflowing text. The object and text can overlap. */
    WRAP_NONE = 1,
    /** Floats the object and wraps text around the custom polygon defined by its wrap path. */
    WRAP_POLYGON = 2,
    /** Floats the object and wraps text around its rectangular bounds. */
    WRAP_SQUARE = 3,
    /** Floats the object and allows text to flow through eligible open regions in its wrap contour. */
    WRAP_THROUGH = 4,
    /** Floats the object and wraps text closely around its contour instead of its rectangular bounds. */
    WRAP_TIGHT = 5,
    /** Floats the object in a horizontal band, leaving text only above and below it. */
    WRAP_TOP_AND_BOTTOM = 6
}
/**
 * Properties of a draw object
 */
export interface IDocDrawingPosition {
    size: ISize;
    positionH: IObjectPositionH;
    positionV: IObjectPositionV;
    angle: number;
    /** Horizontal flip persisted with the document drawing transform. */
    flipX?: boolean;
    /** Vertical flip persisted with the document drawing transform. */
    flipY?: boolean;
}
/**
 * Properties of text style
 */
export type DocTextFillType = 'none' | 'solid' | 'gradient' | 'picture';
export type DocTextFillGradientType = 'linear' | 'radial' | 'angular' | 'diamond';
export type DocTextFillPictureMode = 'stretch' | 'tile';
export interface IDocTextFillGradientStop {
    /**
     * Offset in percent. Values in the 0-1 range are also accepted by renderers
     * for compatibility and normalized to percent.
     */
    offset: number;
    color: string;
    opacity?: number;
}
export interface IDocTextFill {
    /**
     * Hidden renderer-level text fill. Normal document UI does not expose it,
     * but rich-text renderers honor it when present on a run style.
     */
    type: DocTextFillType;
    color?: string;
    opacity?: number;
    gradient?: {
        type?: DocTextFillGradientType;
        angle?: number;
        stops?: IDocTextFillGradientStop[];
    };
    picture?: {
        source?: string;
        sourceType?: ImageSourceType;
        opacity?: number;
        mode?: DocTextFillPictureMode;
        scaleX?: number;
        scaleY?: number;
        offsetX?: number;
        offsetY?: number;
    };
}
export interface IDocTextOutline {
    color?: string;
    width?: number;
}
export interface ITextStyle extends IStyleBase {
    /** Retain text in the document without painting it or reserving layout space (OOXML vanish). Absent inherits. */
    hidden?: boolean;
    /** Word font-type hint for characters shared by Latin, East Asian and complex scripts. */
    fontHint?: 'default' | 'eastAsia' | 'cs';
    /** Alignment tab anchored to the page margins or paragraph indents. Applies only to a tab character. */
    positionedTab?: {
        alignment: TabStopAlignment;
        relativeTo: 'margin' | 'indent';
        leader?: TabStopLeader;
    };
    /** Original font-specific OOXML symbol; only applies to the matching character. */
    symbol?: {
        font: string;
        code: number;
    };
    /** Authored text language (BCP 47), used by language-sensitive text layout. Absent inherits. */
    lang?: string;
    /** Alternate language from the authored text properties (BCP 47). Absent inherits. */
    altLang?: string;
    /** Minimum font size for pair kerning, in the same units as fs. Zero disables it; absent inherits. */
    kerning?: number;
    /** Display capital letters without changing the source text. Absent inherits. */
    caps?: boolean;
    /** Display lowercase letters as smaller capitals without changing source text. Absent inherits. */
    smallCaps?: boolean;
    sc?: number;
    pos?: number;
    sa?: number;
    textFill?: IDocTextFill;
    textOutline?: IDocTextOutline;
    /**
     * DrawingML-style glow around the rendered glyphs.
     *
     * This is primarily intended for embedded rich text such as Shape text. A standalone document product may
     * preserve and render the value without exposing dedicated authoring controls.
     */
    glow?: IGlowEffect;
    /**
     * DrawingML-style outer shadow around the rendered glyphs.
     *
     * This is primarily intended for embedded rich text such as Shape text. A standalone document product may
     * preserve and render the value without exposing dedicated authoring controls.
     */
    outerShadow?: IShadowEffect;
}
export interface IIndentStart {
    indentFirstLine?: INumberUnit;
    hanging?: INumberUnit;
    indentStart?: INumberUnit;
    tabStops?: ITabStop[];
    indentEnd?: INumberUnit;
}
/**
 * Vertical alignment of text runs inside a paragraph line box.
 * This is the normalized form of DrawingML `fontAlgn`.
 */
export type ParagraphFontAlign = 'auto' | 'top' | 'center' | 'baseline' | 'bottom';
/**
 * Properties of paragraph style
 */
export interface IParagraphStyle extends IParagraphProperties {
    textStyle?: ITextStyle;
    /** Formatting of the paragraph terminator only, not inherited by body text. */
    paragraphMarkTextStyle?: ITextStyle;
}
/**
 * Paragraph properties that may be inherited from the document defaults.
 * Paragraph identity and named/text styles have their own inheritance mechanisms.
 */
export type IDocumentDefaultParagraphStyle = Omit<IParagraphStyle, 'headingId' | 'namedStyleType' | 'outlineLevel' | 'textStyle' | 'paragraphMarkTextStyle'>;
export interface IParagraphProperties extends IIndentStart {
    headingId?: string;
    namedStyleType?: NamedStyleType;
    /** Zero-based OOXML outline level used by TOC generation; 9 denotes body text. */
    outlineLevel?: number;
    defaultTabStop?: number;
    /** Whether East Asian kinsoku line-breaking rules apply to this paragraph. */
    eastAsianLineBreak?: BooleanNumber;
    /** Whether punctuation may hang outside the paragraph text bounds. */
    hangingPunctuation?: BooleanNumber;
    /** Whether full-width punctuation at a line start may be compressed (OOXML topLinePunct). */
    topLinePunct?: BooleanNumber;
    fontAlign?: ParagraphFontAlign;
    horizontalAlign?: HorizontalAlign;
    lineSpacing?: number;
    direction?: TextDirection;
    spacingRule?: SpacingRule;
    snapToGrid?: BooleanNumber;
    spaceAbove?: INumberUnit;
    spaceBelow?: INumberUnit;
    /** Whether the layout engine should derive paragraph-before spacing from the active compatibility policy. */
    beforeAutoSpacing?: BooleanNumber;
    /** Whether the layout engine should derive paragraph-after spacing from the active compatibility policy. */
    afterAutoSpacing?: BooleanNumber;
    /** Suppresses spacing between consecutive paragraphs that share the same named style. */
    contextualSpacing?: BooleanNumber;
    borderBetween?: IParagraphBorder;
    borderTop?: IParagraphBorder;
    borderBottom?: IParagraphBorder;
    borderLeft?: IParagraphBorder;
    borderRight?: IParagraphBorder;
    /**
     * Keeps all measured lines of this paragraph on one physical page when they fit.
     *
     * `undefined` inherits, `TRUE` enables, and an explicit `FALSE` disables an
     * inherited value. An oversized paragraph still splits after starting on a
     * fresh page. This Word-compatible pagination rule is rendered only by
     * Traditional Docs.
     *
     * OOXML: 17.3.1.14 `keepLines`.
     */
    keepLines?: BooleanNumber;
    /**
     * Keeps this paragraph with the following paragraph when they fit together.
     *
     * Consecutive `TRUE` values form a bounded keep chain. Set the final
     * paragraph to `FALSE` when it must terminate an inherited or authored chain.
     * `undefined` inherits. This Word-compatible pagination rule is rendered only
     * by Traditional Docs.
     *
     * OOXML: 17.3.1.15 `keepNext`.
     */
    keepNext?: BooleanNumber;
    /**
     * Starts this paragraph on the next physical page unless it is already at a
     * page boundary.
     *
     * `undefined` inherits, `TRUE` enables, and an explicit `FALSE` disables an
     * inherited value. Use a Section Break instead when the following content
     * also needs different page geometry, columns, headers, or footers. This
     * Word-compatible pagination rule is rendered only by Traditional Docs.
     *
     * OOXML: 17.3.1.23 `pageBreakBefore`.
     */
    pageBreakBefore?: BooleanNumber;
    /** Allow words to split across lines. Absent inherits; DOCX w:wordWrap uses the inverse value. */
    wordWrap?: BooleanNumber;
    /**
     * Avoids leaving a single measured first or last line on a separate page
     * when the paragraph can be adjusted without violating stronger keep rules.
     *
     * `undefined` inherits, `TRUE` enables, and an explicit `FALSE` disables an
     * inherited value. This Word-compatible pagination rule is rendered only by
     * Traditional Docs.
     *
     * OOXML: 17.3.1.44 `widowControl`.
     */
    widowControl?: BooleanNumber;
    shading?: IShading;
    suppressHyphenation?: BooleanNumber;
    /** Positioned Word frame metadata; legacy snapshots may contain only a presence flag. */
    paragraphFrame?: BooleanNumber | {
        horizontalSpace?: number;
        wrap?: string;
        verticalAnchor?: string;
        horizontalAnchor?: string;
        x?: string;
        y?: string;
        xAlign?: string;
        yAlign?: string;
    };
}
/**
 * Types of name style
 */
export declare enum NamedStyleType {
    NAMED_STYLE_TYPE_UNSPECIFIED = 0,// The type of named style is unspecified.
    NORMAL_TEXT = 1,// Normal text.
    TITLE = 2,// Title.
    SUBTITLE = 3,// Subtitle.
    HEADING_1 = 4,// Heading 1.
    HEADING_2 = 5,// Heading 2.
    HEADING_3 = 6,// Heading 3.
    HEADING_4 = 7,// Heading 4.
    HEADING_5 = 8
}
export declare enum SpacingRule {
    /**
     * Specifies that the line spacing of the parent object shall be automatically determined by the size of its contents, with no predetermined minimum or maximum size.
     */
    AUTO = 0,
    /**
     * Specifies that the height of the line shall be at least the value specified, but might be expanded to fit its content as needed.
     */
    AT_LEAST = 1,
    /**
     * Specifies that the height of the line shall be exactly the value specified, regardless of the size of the contents of the contents.
     */
    EXACT = 2
}
/**
 * Properties of doc border
 */
export interface IDocsBorder {
    color: IColorStyle;
    width: number;
    dashStyle: DashStyleType;
}
/**
 * Properties of paragraph border
 */
export interface IParagraphBorder extends IDocsBorder {
    padding: number;
}
/**
 * The kinds of dashes with which linear geometry can be rendered.
 */
export declare enum DashStyleType {
    DASH_STYLE_UNSPECIFIED = 0,// Unspecified dash style.
    SOLID = 1,// Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'solid'. This is the default dash style.
    DOT = 2,// Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'dot'.
    DASH = 3
}
/**
 * A tab stop within a paragraph.
 */
export interface ITabStop {
    offset: number;
    alignment: TabStopAlignment;
    leader?: TabStopLeader;
    clear?: boolean;
}
/**
 * The alignment of the tab stop.
 */
export declare enum TabStopAlignment {
    TAB_STOP_ALIGNMENT_UNSPECIFIED = 0,// The tab stop alignment is unspecified.
    START = 1,// The tab stop is aligned to the start of the line. This is the default.
    CENTER = 2,// The tab stop is aligned to the center of the line.
    END = 3
}
export declare enum TabStopLeader {
    TAB_STOP_LEADER_UNSPECIFIED = 0,
    NONE = 1,
    DOT = 2,
    HYPHEN = 3,
    UNDERSCORE = 4,
    HEAVY = 5,
    MIDDLE_DOT = 6
}
/**
 * Properties of shading
 */
export interface IShading {
    backgroundColor: IColorStyle;
}
export interface IDistFromText {
    distT: number;
    distB: number;
    distL: number;
    distR: number;
}
export interface ITableAnchor {
    positionH: IObjectPositionH;
    positionV: IObjectPositionV;
}
export declare enum TableSizeType {
    UNSPECIFIED = 0,
    SPECIFIED = 1
}
export interface IWidthInTableSize {
    type: TableSizeType;
    width: INumberUnit;
}
export declare enum TableAlignmentType {
    START = 0,
    CENTER = 1,
    END = 2
}
export declare enum TableLayoutType {
    AUTO_FIT = 0,
    FIXED = 1
}
export declare enum TableTextWrapType {
    NONE = 0,
    WRAP = 1
}
export interface ICustomTable {
    /** Inclusive index that must point at a `TABLE_START` sentinel. */
    startIndex: number;
    /** Exclusive boundary immediately after the matching `TABLE_END` sentinel. */
    endIndex: number;
    tableId: string;
}
export interface ICustomColumnGroup {
    /** Inclusive index that must point at a `COLUMN_GROUP_START` sentinel. */
    startIndex: number;
    /** Inclusive index that must point at the matching `COLUMN_GROUP_END` sentinel. */
    endIndex: number;
    columnGroupId: string;
    columns?: IColumn[];
    gap?: INumberUnit;
    layout?: ColumnLayoutType;
    responsive?: ColumnResponsiveType;
    version?: number;
}
export declare enum ColumnLayoutType {
    FIXED = "fixed",
    AUTO = "auto"
}
export declare enum ColumnResponsiveType {
    STACK = "stack",
    SHRINK = "shrink"
}
export interface IColumnGroup {
    columnGroupId: string;
    columns: IColumn[];
    gap: INumberUnit;
    layout: ColumnLayoutType;
    responsive: ColumnResponsiveType;
    version?: number;
}
export interface IColumn {
    columnId: string;
    widthRatio: number;
    minWidth?: INumberUnit;
}
/**
 * Properties of table
 */
export interface ITable {
    tableRows: ITableRow[];
    tableColumns: ITableColumn[];
    align: TableAlignmentType;
    indent: INumberUnit;
    /** Imported pre-2013 Word text-to-frame indent correction for top-level tables. */
    legacyIndentAdjustment?: INumberUnit;
    textWrap: TableTextWrapType;
    position: ITableAnchor;
    dist: IDistFromText;
    size: IWidthInTableSize;
    tableId: string;
    cellMargin?: ITableCellMargin;
    layout?: TableLayoutType;
    overlap?: BooleanNumber;
    description?: string;
}
export declare enum TableRowHeightRule {
    AUTO = 0,
    AT_LEAST = 1,
    EXACT = 2
}
export interface ITableColumn {
    size: IWidthInTableSize;
}
export interface ITableRowSize {
    val: INumberUnit;
    hRule: TableRowHeightRule;
}
/**
 * Properties of row of table
 */
export interface ITableRow {
    /** Authored row-level default margins (OOXML tblPrEx); imported cells contain resolved margins. */
    cellMargin?: ITableCellMargin;
    /**
     * Rows do not persist stream offsets. Their ordinal position must match the
     * corresponding `TABLE_ROW_START`/`TABLE_ROW_END` pair in `dataStream`.
     */
    tableCells: ITableCell[];
    /** Number of table-grid columns omitted before the first cell in this row. */
    gridBefore?: number;
    /** Number of table-grid columns omitted after the last cell in this row. */
    gridAfter?: number;
    /** Preferred width of the omitted leading grid columns (OOXML wBefore). */
    widthBefore?: IWidthInTableSize;
    /** Preferred width of the omitted trailing grid columns (OOXML wAfter). */
    widthAfter?: IWidthInTableSize;
    trHeight: ITableRowSize;
    cantSplit?: BooleanNumber;
    isFirstRow?: BooleanNumber;
    repeatHeaderRow?: BooleanNumber;
}
/**
 * Properties of table cell
 */
export interface ITableCell {
    /**
     * Cells do not persist stream offsets. Their ordinal position must match the
     * corresponding `TABLE_CELL_START`/`TABLE_CELL_END` pair in the row stream.
     */
    margin?: ITableCellMargin;
    rowSpan?: number;
    columnSpan?: number;
    backgroundColor?: IColorStyle;
    borderLeft?: ITableCellBorder;
    borderRight?: ITableCellBorder;
    borderTop?: ITableCellBorder;
    borderBottom?: ITableCellBorder;
    size?: IWidthInTableSize;
    tcFitText?: BooleanNumber;
    /** Exclude the cell's final paragraph mark from content height (OOXML w:hideMark). */
    tcHideMark?: BooleanNumber;
    /** OOXML table-cell writing direction; independent of paragraph bidirectional ordering. */
    textDirection?: 'lrTb' | 'tbRl' | 'btLr' | 'lrTbV' | 'tbRlV' | 'tbLrV';
    vAlign?: VerticalAlignmentType;
}
export interface ITableCellMargin {
    start: INumberUnit;
    end: INumberUnit;
    top: INumberUnit;
    bottom: INumberUnit;
}
/**
 * Properties of cell border
 */
export interface ITableCellBorder {
    color: IColorStyle;
    width?: INumberUnit;
    dashStyle?: DashStyleType;
    /**
     * Resolved outer table top when borderTop inherits the table's insideH edge.
     * At the top of a traditional table page fragment, use this instead of the
     * internal edge. Absent for explicit cell borders and legacy snapshots.
     * Replacing or editing the cell border must discard this inheritance.
     */
    tableTopBorder?: ITableCellBorder;
    /** Resolved outer bottom for an inherited insideH edge; follows the same editing rules as tableTopBorder. */
    tableBottomBorder?: ITableCellBorder;
}
/**
 * The content alignments for a Shape or TableCell. The supported alignments correspond to predefined text anchoring types from the ECMA-376 standard.
 */
export declare enum VerticalAlignmentType {
    CONTENT_ALIGNMENT_UNSPECIFIED = 0,// An unspecified content alignment. The content alignment is inherited from the parent if one exists.
    BOTH = 1,
    TOP = 2,// An alignment that aligns the content to the top of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 't'.
    CENTER = 3,// An alignment that aligns the content to the middle of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 'ctr'.
    BOTTOM = 4
}
/**
 * Types of font style
 */
export declare enum FontStyleType {
    NORMAL = "normal",
    BOLD = "bold",
    ITALIC = "italic"
}
export interface INumberUnit {
    v: number;
    u?: NumberUnitType;
}
export interface IObjectPositionH {
    relativeFrom: ObjectRelativeFromH;
    align?: AlignTypeH;
    posOffset?: number;
    percent?: number;
}
export interface IObjectPositionV {
    relativeFrom: ObjectRelativeFromV;
    align?: AlignTypeV;
    posOffset?: number;
    percent?: number;
}
export declare enum ObjectRelativeFromH {
    PAGE = 0,
    COLUMN = 1,
    CHARACTER = 2,
    MARGIN = 3,
    INSIDE_MARGIN = 4,
    OUTSIDE_MARGIN = 5,
    LEFT_MARGIN = 6,
    RIGHT_MARGIN = 7
}
export declare enum ObjectRelativeFromV {
    PAGE = 0,
    PARAGRAPH = 1,
    LINE = 2,
    MARGIN = 3,
    TOP_MARGIN = 4,
    BOTTOM_MARGIN = 5,
    INSIDE_MARGIN = 6,
    OUTSIDE_MARGIN = 7
}
export declare enum NumberUnitType {
    POINT = 0,
    LINE = 1,
    CHARACTER = 2,
    PIXEL = 3,
    PERCENT = 4
}
export declare enum AlignTypeH {
    CENTER = 0,
    INSIDE = 1,
    LEFT = 2,
    OUTSIDE = 3,
    RIGHT = 4,
    BOTH = 5,
    DISTRIBUTE = 6
}
export declare enum AlignTypeV {
    BOTTOM = 0,
    CENTER = 1,
    INSIDE = 2,
    OUTSIDE = 3,
    TOP = 4
}
export declare enum characterSpacingControlType {
    compressPunctuation = 0,
    compressPunctuationAndJapaneseKana = 1,
    doNotCompress = 2
}
/**
 * Paper orientation, whether it's portrait (vertical) or landscape (horizontal)
 */
export declare enum PageOrientType {
    PORTRAIT = 0,
    LANDSCAPE = 1
}
export declare enum PaperType {
    Letter = "Letter",
    Tabloid = "Tabloid",
    Legal = "Legal",
    Statement = "Statement",
    Executive = "Executive",
    Folio = "Folio",
    A3 = "A3",
    A4 = "A4",
    A5 = "A5",
    B4 = "B4",
    B5 = "B5"
}
export declare const PAPER_TYPES: PaperType[];
