| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189 |
- import { default as default_2 } from 'jszip';
- import { Element as Element_2 } from 'xml-js';
- import { Stream } from 'stream';
-
- export declare class AbstractNumbering extends XmlComponent {
- readonly id: number;
- constructor(id: number, levelOptions: readonly ILevelsOptions[]);
- }
-
- export declare const abstractNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
-
- export declare const AlignmentType: {
- readonly START: "start";
- readonly CENTER: "center";
- readonly END: "end";
- readonly BOTH: "both";
- readonly MEDIUM_KASHIDA: "mediumKashida";
- readonly DISTRIBUTE: "distribute";
- readonly NUM_TAB: "numTab";
- readonly HIGH_KASHIDA: "highKashida";
- readonly LOW_KASHIDA: "lowKashida";
- readonly THAI_DISTRIBUTE: "thaiDistribute";
- readonly LEFT: "left";
- readonly RIGHT: "right";
- readonly JUSTIFIED: "both";
- };
-
- export declare class AnnotationReference extends EmptyElement {
- constructor();
- }
-
- declare class AppProperties extends XmlComponent {
- constructor();
- }
-
- export declare type AttributeData = Record<string, boolean | number | string>;
-
- export declare type AttributeMap<T> = Record<keyof T, string>;
-
- export declare type AttributePayload<T> = {
- readonly [P in keyof T]: {
- readonly key: string;
- readonly value: T[P];
- };
- };
-
- export declare class Attributes extends XmlAttributeComponent<{
- readonly val?: string | number | boolean;
- readonly color?: string;
- readonly fill?: string;
- readonly space?: string;
- readonly sz?: string;
- readonly type?: string;
- readonly rsidR?: string;
- readonly rsidRPr?: string;
- readonly rsidSect?: string;
- readonly w?: string;
- readonly h?: string;
- readonly top?: string;
- readonly right?: string;
- readonly bottom?: string;
- readonly left?: string;
- readonly header?: string;
- readonly footer?: string;
- readonly gutter?: string;
- readonly linePitch?: string;
- readonly pos?: string | number;
- }> {
- protected readonly xmlKeys: {
- val: string;
- color: string;
- fill: string;
- space: string;
- sz: string;
- type: string;
- rsidR: string;
- rsidRPr: string;
- rsidSect: string;
- w: string;
- h: string;
- top: string;
- right: string;
- bottom: string;
- left: string;
- header: string;
- footer: string;
- gutter: string;
- linePitch: string;
- pos: string;
- };
- }
-
- export declare abstract class BaseXmlComponent {
- protected readonly rootKey: string;
- constructor(rootKey: string);
- abstract prepForXml(context: IContext): IXmlableObject | undefined;
- }
-
- declare class Body_2 extends XmlComponent {
- private readonly sections;
- constructor();
- addSection(options: ISectionPropertiesOptions): void;
- prepForXml(context: IContext): IXmlableObject | undefined;
- push(component: XmlComponent): void;
- private createSectionParagraph;
- }
- export { Body_2 as Body }
-
- export declare class Bookmark {
- private readonly bookmarkUniqueNumericId;
- readonly start: BookmarkStart;
- readonly children: readonly ParagraphChild[];
- readonly end: BookmarkEnd;
- constructor(options: IBookmarkOptions);
- }
-
- export declare class BookmarkEnd extends XmlComponent {
- constructor(linkId: number);
- }
-
- export declare class BookmarkStart extends XmlComponent {
- constructor(id: string, linkId: number);
- }
-
- export declare const bookmarkUniqueNumericIdGen: () => UniqueNumericIdCreator;
-
- export declare class Border extends IgnoreIfEmptyXmlComponent {
- constructor(options: IBordersOptions);
- }
-
- export declare const BorderStyle: {
- readonly SINGLE: "single";
- readonly DASH_DOT_STROKED: "dashDotStroked";
- readonly DASHED: "dashed";
- readonly DASH_SMALL_GAP: "dashSmallGap";
- readonly DOT_DASH: "dotDash";
- readonly DOT_DOT_DASH: "dotDotDash";
- readonly DOTTED: "dotted";
- readonly DOUBLE: "double";
- readonly DOUBLE_WAVE: "doubleWave";
- readonly INSET: "inset";
- readonly NIL: "nil";
- readonly NONE: "none";
- readonly OUTSET: "outset";
- readonly THICK: "thick";
- readonly THICK_THIN_LARGE_GAP: "thickThinLargeGap";
- readonly THICK_THIN_MEDIUM_GAP: "thickThinMediumGap";
- readonly THICK_THIN_SMALL_GAP: "thickThinSmallGap";
- readonly THIN_THICK_LARGE_GAP: "thinThickLargeGap";
- readonly THIN_THICK_MEDIUM_GAP: "thinThickMediumGap";
- readonly THIN_THICK_SMALL_GAP: "thinThickSmallGap";
- readonly THIN_THICK_THIN_LARGE_GAP: "thinThickThinLargeGap";
- readonly THIN_THICK_THIN_MEDIUM_GAP: "thinThickThinMediumGap";
- readonly THIN_THICK_THIN_SMALL_GAP: "thinThickThinSmallGap";
- readonly THREE_D_EMBOSS: "threeDEmboss";
- readonly THREE_D_ENGRAVE: "threeDEngrave";
- readonly TRIPLE: "triple";
- readonly WAVE: "wave";
- };
-
- export declare class BuilderElement<T extends AttributeData = {}> extends XmlComponent {
- constructor({ name, attributes, children, }: {
- readonly name: string;
- readonly attributes?: AttributePayload<T>;
- readonly children?: readonly XmlComponent[];
- });
- }
-
- export declare class CarriageReturn extends EmptyElement {
- constructor();
- }
-
- export declare class CellMerge extends XmlComponent {
- constructor(options: ICellMergeAttributes);
- }
-
- export declare class CellMergeAttributes extends XmlAttributeComponent<ICellMergeAttributes> {
- protected readonly xmlKeys: {
- id: string;
- author: string;
- date: string;
- verticalMerge: string;
- verticalMergeOriginal: string;
- };
- }
-
- declare const CellSpacingType: {
- readonly DXA: "dxa";
- readonly NIL: "nil";
- };
-
- export declare const CharacterSet: {
- readonly ANSI: "00";
- readonly DEFAULT: "01";
- readonly SYMBOL: "02";
- readonly MAC: "4D";
- readonly JIS: "80";
- readonly HANGUL: "81";
- readonly JOHAB: "82";
- readonly GB_2312: "86";
- readonly CHINESEBIG5: "88";
- readonly GREEK: "A1";
- readonly TURKISH: "A2";
- readonly VIETNAMESE: "A3";
- readonly HEBREW: "B1";
- readonly ARABIC: "B2";
- readonly BALTIC: "BA";
- readonly RUSSIAN: "CC";
- readonly THAI: "DE";
- readonly EASTEUROPE: "EE";
- readonly OEM: "FF";
- };
-
- export declare class CheckBox extends XmlComponent {
- private readonly DEFAULT_UNCHECKED_SYMBOL;
- private readonly DEFAULT_CHECKED_SYMBOL;
- private readonly DEFAULT_FONT;
- constructor(options?: ICheckboxSymbolOptions);
- }
-
- export declare class CheckBoxSymbolElement extends XmlComponent {
- constructor(name: string, val: string, font?: string);
- }
-
- export declare class CheckBoxUtil extends XmlComponent {
- private readonly DEFAULT_UNCHECKED_SYMBOL;
- private readonly DEFAULT_CHECKED_SYMBOL;
- private readonly DEFAULT_FONT;
- constructor(options?: ICheckboxSymbolOptions);
- }
-
- export declare class Column extends XmlComponent {
- constructor(options: IColumnAttributes);
- }
-
- export declare class ColumnBreak extends Run {
- constructor();
- }
-
- declare class Comment_2 extends XmlComponent {
- constructor({ id, initials, author, date, children }: ICommentOptions);
- }
- export { Comment_2 as Comment }
-
- export declare class CommentRangeEnd extends XmlComponent {
- constructor(id: number);
- }
-
- export declare class CommentRangeStart extends XmlComponent {
- constructor(id: number);
- }
-
- export declare class CommentReference extends XmlComponent {
- constructor(id: number);
- }
-
- export declare class Comments extends XmlComponent {
- private readonly relationships;
- constructor({ children }: ICommentsOptions);
- get Relationships(): Relationships;
- }
-
- declare const CompoundLine: {
- readonly SINGLE: "sng";
- readonly DOUBLE: "dbl";
- readonly THICK_THIN: "thickThin";
- readonly THIN_THICK: "thinThick";
- readonly TRI: "tri";
- };
-
- export declare class ConcreteHyperlink extends XmlComponent {
- readonly linkId: string;
- constructor(children: readonly ParagraphChild[], relationshipId: string, anchor?: string);
- }
-
- export declare class ConcreteNumbering extends XmlComponent {
- readonly numId: number;
- readonly reference: string;
- readonly instance: number;
- constructor(options: IConcreteNumberingOptions);
- }
-
- export declare const concreteNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
-
- declare class ContentTypes extends XmlComponent {
- constructor();
- addFooter(index: number): void;
- addHeader(index: number): void;
- }
-
- export declare class ContinuationSeparator extends EmptyElement {
- constructor();
- }
-
- export declare const convertInchesToTwip: (inches: number) => number;
-
- export declare const convertMillimetersToTwip: (millimeters: number) => number;
-
- export declare const convertToXmlComponent: (element: Element_2) => ImportedXmlComponent | string | undefined;
-
- declare type CoreGroupOptions = {
- readonly children: readonly IGroupChildMediaData[];
- readonly transformation: IMediaTransformation;
- readonly floating?: IFloating;
- readonly altText?: DocPropertiesOptions;
- };
-
- declare type CoreImageOptions = {
- readonly transformation: IMediaTransformation;
- readonly floating?: IFloating;
- readonly altText?: DocPropertiesOptions;
- readonly outline?: OutlineOptions;
- readonly solidFill?: SolidFillOptions;
- };
-
- declare type CoreMediaData = {
- readonly fileName: string;
- readonly transformation: IMediaDataTransformation;
- readonly data: Buffer | Uint8Array | ArrayBuffer;
- };
-
- declare class CoreProperties extends XmlComponent {
- constructor(options: Omit<IPropertiesOptions, "sections">);
- }
-
- declare type CoreShapeOptions = {
- readonly transformation: IMediaTransformation;
- readonly floating?: IFloating;
- readonly altText?: DocPropertiesOptions;
- readonly outline?: OutlineOptions;
- readonly solidFill?: SolidFillOptions;
- };
-
- export declare const createAlignment: (type: (typeof AlignmentType)[keyof typeof AlignmentType]) => XmlComponent;
-
- export declare const createBodyProperties: (options?: IBodyPropertiesOptions) => XmlComponent;
-
- export declare const createBorderElement: (elementName: string, { color, size, space, style }: IBorderOptions) => XmlComponent;
-
- export declare const createColumns: ({ space, count, separate, equalWidth, children }: IColumnsAttributes) => XmlComponent;
-
- export declare const createDocumentGrid: ({ type, linePitch, charSpace }: IDocGridAttributesProperties) => XmlComponent;
-
- export declare const createDotEmphasisMark: () => XmlComponent;
-
- export declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => XmlComponent;
-
- export declare const createFrameProperties: (options: IFrameOptions) => XmlComponent;
-
- export declare const createHeaderFooterReference: (type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions) => XmlComponent;
-
- export declare const createHorizontalPosition: ({ relative, align, offset }: IHorizontalPositionOptions) => XmlComponent;
-
- export declare const createIndent: ({ start, end, left, right, hanging, firstLine }: IIndentAttributesProperties) => XmlComponent;
-
- export declare const createLineNumberType: ({ countBy, start, restart, distance }: ILineNumberAttributes) => XmlComponent;
-
- export declare const createMathAccentCharacter: ({ accent }: MathAccentCharacterOptions) => XmlComponent;
-
- export declare const createMathBase: ({ children }: MathBaseOptions) => XmlComponent;
-
- export declare const createMathLimitLocation: ({ value }: MathLimitLocationOptions) => XmlComponent;
-
- export declare const createMathNAryProperties: ({ accent, hasSuperScript, hasSubScript, limitLocationVal, }: MathNAryPropertiesOptions) => XmlComponent;
-
- export declare const createMathPreSubSuperScriptProperties: () => XmlComponent;
-
- export declare const createMathSubScriptElement: ({ children }: MathSubScriptElementOptions) => XmlComponent;
-
- export declare const createMathSubScriptProperties: () => XmlComponent;
-
- export declare const createMathSubSuperScriptProperties: () => XmlComponent;
-
- export declare const createMathSuperScriptElement: ({ children }: MathSuperScriptElementOptions) => XmlComponent;
-
- export declare const createMathSuperScriptProperties: () => XmlComponent;
-
- export declare const createOutlineLevel: (level: number) => XmlComponent;
-
- export declare const createPageMargin: (top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure) => XmlComponent;
-
- export declare const createPageNumberType: ({ start, formatType, separator }: IPageNumberTypeAttributes) => XmlComponent;
-
- export declare const createPageSize: ({ width, height, orientation, code }: IPageSizeAttributes) => XmlComponent;
-
- export declare const createParagraphStyle: (styleId: string) => XmlComponent;
-
- export declare const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties, hint?: string) => XmlComponent;
-
- export declare const createSectionType: (value: (typeof SectionType)[keyof typeof SectionType]) => XmlComponent;
-
- export declare const createShading: ({ fill, color, type }: IShadingAttributesProperties) => XmlComponent;
-
- export declare const createSimplePos: () => XmlComponent;
-
- export declare const createSpacing: ({ after, before, line, lineRule, beforeAutoSpacing, afterAutoSpacing }: ISpacingProperties) => XmlComponent;
-
- export declare const createStringElement: (name: string, value: string) => XmlComponent;
-
- export declare const createTableFloatProperties: ({ horizontalAnchor, verticalAnchor, absoluteHorizontalPosition, relativeHorizontalPosition, absoluteVerticalPosition, relativeVerticalPosition, bottomFromText, topFromText, leftFromText, rightFromText, overlap, }: ITableFloatOptions) => XmlComponent;
-
- export declare const createTableLayout: (type: (typeof TableLayoutType)[keyof typeof TableLayoutType]) => XmlComponent;
-
- export declare const createTableLook: ({ firstRow, lastRow, firstColumn, lastColumn, noHBand, noVBand }: ITableLookOptions) => XmlComponent;
-
- export declare const createTableRowHeight: (value: number | PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]) => XmlComponent;
-
- export declare const createTableWidthElement: (name: string, { type, size }: ITableWidthProperties) => XmlComponent;
-
- export declare const createTabStop: (tabDefinitions: readonly TabStopDefinition[]) => XmlComponent;
-
- export declare const createTabStopItem: ({ type, position, leader }: TabStopDefinition) => XmlComponent;
-
- export declare const createTransformation: (options: IMediaTransformation) => IMediaDataTransformation;
-
- export declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string) => XmlComponent;
-
- export declare const createVerticalAlign: (value: (typeof VerticalAlign)[keyof typeof VerticalAlign]) => XmlComponent;
-
- export declare const createVerticalPosition: ({ relative, align, offset }: IVerticalPositionOptions) => XmlComponent;
-
- export declare const createWrapNone: () => XmlComponent;
-
- export declare const createWrapSquare: (textWrapping: ITextWrapping, margins?: IMargins) => XmlComponent;
-
- export declare const createWrapTight: (margins?: IMargins) => XmlComponent;
-
- export declare const createWrapTopAndBottom: (margins?: IMargins) => XmlComponent;
-
- declare class CustomProperties extends XmlComponent {
- private nextId;
- private readonly properties;
- constructor(properties: readonly ICustomPropertyOptions[]);
- prepForXml(context: IContext): IXmlableObject | undefined;
- addCustomProperty(property: ICustomPropertyOptions): void;
- }
-
- export declare const dateTimeValue: (val: Date) => string;
-
- export declare class DayLong extends EmptyElement {
- constructor();
- }
-
- export declare class DayShort extends EmptyElement {
- constructor();
- }
-
- export declare const decimalNumber: (val: number) => number;
-
- export declare class DeletedTableCell extends XmlComponent {
- constructor(options: IChangedAttributesProperties);
- }
-
- export declare class DeletedTableRow extends XmlComponent {
- constructor(options: IChangedAttributesProperties);
- }
-
- export declare class DeletedTextRun extends XmlComponent {
- protected readonly deletedTextRunWrapper: DeletedTextRunWrapper;
- constructor(options: IDeletedRunOptions);
- }
-
- declare class DeletedTextRunWrapper extends XmlComponent {
- constructor(options: IRunOptions);
- }
-
- declare type DocPropertiesOptions = {
- readonly name: string;
- readonly description?: string;
- readonly title?: string;
- readonly id?: string;
- };
-
- export declare const docPropertiesUniqueNumericIdGen: () => UniqueNumericIdCreator;
-
- declare class Document_2 extends XmlComponent {
- private readonly body;
- constructor(options: IDocumentOptions);
- add(item: Paragraph | Table | TableOfContents | ConcreteHyperlink): Document_2;
- get Body(): Body_2;
- }
-
- export declare type DocumentAttributeNamespace = keyof typeof DocumentAttributeNamespaces;
-
- export declare const DocumentAttributeNamespaces: {
- wpc: string;
- mc: string;
- o: string;
- r: string;
- m: string;
- v: string;
- wp14: string;
- wp: string;
- w10: string;
- w: string;
- w14: string;
- w15: string;
- wpg: string;
- wpi: string;
- wne: string;
- wps: string;
- cp: string;
- dc: string;
- dcterms: string;
- dcmitype: string;
- xsi: string;
- cx: string;
- cx1: string;
- cx2: string;
- cx3: string;
- cx4: string;
- cx5: string;
- cx6: string;
- cx7: string;
- cx8: string;
- aink: string;
- am3d: string;
- w16cex: string;
- w16cid: string;
- w16: string;
- w16sdtdh: string;
- w16se: string;
- };
-
- export declare class DocumentAttributes extends XmlAttributeComponent<IDocumentAttributesProperties> {
- protected readonly xmlKeys: AttributeMap<IDocumentAttributesProperties>;
- constructor(ns: readonly DocumentAttributeNamespace[], Ignorable?: string);
- }
-
- export declare class DocumentBackground extends XmlComponent {
- constructor(options: IDocumentBackgroundOptions);
- }
-
- export declare class DocumentBackgroundAttributes extends XmlAttributeComponent<{
- readonly color?: string;
- readonly themeColor?: string;
- readonly themeShade?: string;
- readonly themeTint?: string;
- }> {
- protected readonly xmlKeys: {
- color: string;
- themeColor: string;
- themeShade: string;
- themeTint: string;
- };
- }
-
- export declare class DocumentDefaults extends XmlComponent {
- private readonly runPropertiesDefaults;
- private readonly paragraphPropertiesDefaults;
- constructor(options: IDocumentDefaultsOptions);
- }
-
- export declare const DocumentGridType: {
- readonly DEFAULT: "default";
- readonly LINES: "lines";
- readonly LINES_AND_CHARS: "linesAndChars";
- readonly SNAP_TO_CHARS: "snapToChars";
- };
-
- declare class DocumentWrapper implements IViewWrapper {
- private readonly document;
- private readonly relationships;
- constructor(options: IDocumentOptions);
- get View(): Document_2;
- get Relationships(): Relationships;
- }
-
- export declare class Drawing extends XmlComponent {
- constructor(imageData: IExtendedMediaData, drawingOptions?: IDrawingOptions);
- }
-
- export declare const DropCapType: {
- readonly NONE: "none";
- readonly DROP: "drop";
- readonly MARGIN: "margin";
- };
-
- export declare const eighthPointMeasureValue: (val: number) => number;
-
- export declare const EmphasisMarkType: {
- readonly DOT: "dot";
- };
-
- export declare const EMPTY_OBJECT: {};
-
- export declare class EmptyElement extends XmlComponent {
- }
-
- export declare const encodeUtf8: (str: string) => Uint8Array;
-
- export declare class EndnoteIdReference extends XmlComponent {
- constructor(id: number);
- }
-
- export declare class EndnoteReference extends EmptyElement {
- constructor();
- }
-
- export declare class EndnoteReferenceRun extends Run {
- constructor(id: number);
- }
-
- export declare class EndnoteReferenceRunAttributes extends XmlAttributeComponent<{
- readonly id: number;
- }> {
- protected readonly xmlKeys: {
- id: string;
- };
- }
-
- export declare class Endnotes extends XmlComponent {
- constructor();
- createEndnote(id: number, paragraph: readonly Paragraph[]): void;
- }
-
- declare class EndnotesWrapper implements IViewWrapper {
- private readonly endnotes;
- private readonly relationships;
- constructor();
- get View(): Endnotes;
- get Relationships(): Relationships;
- }
-
- export declare class ExternalHyperlink extends XmlComponent {
- readonly options: IExternalHyperlinkOptions;
- constructor(options: IExternalHyperlinkOptions);
- }
-
- declare class FieldInstruction extends XmlComponent {
- private readonly properties;
- constructor(properties?: ITableOfContentsOptions);
- }
-
- declare class File_2 {
- private currentRelationshipId;
- private readonly documentWrapper;
- private readonly headers;
- private readonly footers;
- private readonly coreProperties;
- private readonly numbering;
- private readonly media;
- private readonly fileRelationships;
- private readonly footnotesWrapper;
- private readonly endnotesWrapper;
- private readonly settings;
- private readonly contentTypes;
- private readonly customProperties;
- private readonly appProperties;
- private readonly styles;
- private readonly comments;
- private readonly fontWrapper;
- constructor(options: IPropertiesOptions);
- private addSection;
- private createHeader;
- private createFooter;
- private addHeaderToDocument;
- private addFooterToDocument;
- private addDefaultRelationships;
- get Document(): DocumentWrapper;
- get Styles(): Styles;
- get CoreProperties(): CoreProperties;
- get Numbering(): Numbering;
- get Media(): Media;
- get FileRelationships(): Relationships;
- get Headers(): readonly HeaderWrapper[];
- get Footers(): readonly FooterWrapper[];
- get ContentTypes(): ContentTypes;
- get CustomProperties(): CustomProperties;
- get AppProperties(): AppProperties;
- get FootNotes(): FootnotesWrapper;
- get Endnotes(): EndnotesWrapper;
- get Settings(): Settings;
- get Comments(): Comments;
- get FontTable(): FontWrapper;
- }
- export { File_2 as Document }
- export { File_2 as File }
-
- export declare class FileChild extends XmlComponent {
- readonly fileChild: symbol;
- }
-
- declare type FilePatch = {
- readonly type: typeof PatchType.DOCUMENT;
- readonly children: readonly FileChild[];
- };
-
- declare type FontOptions = {
- readonly name: string;
- readonly data: Buffer;
- readonly characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
- };
-
- declare type FontOptionsWithKey = FontOptions & {
- readonly fontKey: string;
- };
-
- declare class FontWrapper implements IViewWrapper {
- readonly options: readonly FontOptions[];
- private readonly fontTable;
- private readonly relationships;
- readonly fontOptionsWithKey: readonly FontOptionsWithKey[];
- constructor(options: readonly FontOptions[]);
- get View(): XmlComponent;
- get Relationships(): Relationships;
- }
-
- export declare class Footer {
- readonly options: IHeaderOptions;
- constructor(options?: IHeaderOptions);
- }
-
- declare class Footer_2 extends InitializableXmlComponent {
- private readonly refId;
- constructor(referenceNumber: number, initContent?: XmlComponent);
- get ReferenceId(): number;
- add(item: Paragraph | Table): void;
- }
-
- export declare class FooterWrapper implements IViewWrapper {
- private readonly media;
- private readonly footer;
- private readonly relationships;
- constructor(media: Media, referenceId: number, initContent?: XmlComponent);
- add(item: Paragraph | Table): void;
- addChildElement(childElement: XmlComponent): void;
- get View(): Footer_2;
- get Relationships(): Relationships;
- get Media(): Media;
- }
-
- export declare class FootnoteReference extends XmlComponent {
- constructor(id: number);
- }
-
- export declare class FootnoteReferenceElement extends EmptyElement {
- constructor();
- }
-
- export declare class FootnoteReferenceRun extends Run {
- constructor(id: number);
- }
-
- export declare class FootNoteReferenceRunAttributes extends XmlAttributeComponent<{
- readonly id: number;
- }> {
- protected readonly xmlKeys: {
- id: string;
- };
- }
-
- export declare class FootNotes extends XmlComponent {
- constructor();
- createFootNote(id: number, paragraph: readonly Paragraph[]): void;
- }
-
- declare class FootnotesWrapper implements IViewWrapper {
- private readonly footnotess;
- private readonly relationships;
- constructor();
- get View(): FootNotes;
- get Relationships(): Relationships;
- }
-
- export declare const FrameAnchorType: {
- readonly MARGIN: "margin";
- readonly PAGE: "page";
- readonly TEXT: "text";
- };
-
- export declare const FrameWrap: {
- readonly AROUND: "around";
- readonly AUTO: "auto";
- readonly NONE: "none";
- readonly NOT_BESIDE: "notBeside";
- readonly THROUGH: "through";
- readonly TIGHT: "tight";
- };
-
- export declare class GridSpan extends XmlComponent {
- constructor(value: number);
- }
-
- export declare const hashedId: (data: Buffer | string | Uint8Array | ArrayBuffer) => string;
-
- export declare class Header {
- readonly options: IHeaderOptions;
- constructor(options?: IHeaderOptions);
- }
-
- declare class Header_2 extends InitializableXmlComponent {
- private readonly refId;
- constructor(referenceNumber: number, initContent?: XmlComponent);
- get ReferenceId(): number;
- add(item: Paragraph | Table): void;
- }
-
- export declare const HeaderFooterReferenceType: {
- readonly DEFAULT: "default";
- readonly FIRST: "first";
- readonly EVEN: "even";
- };
-
- export declare const HeaderFooterType: {
- readonly HEADER: "w:headerReference";
- readonly FOOTER: "w:footerReference";
- };
-
- export declare class HeaderWrapper implements IViewWrapper {
- private readonly media;
- private readonly header;
- private readonly relationships;
- constructor(media: Media, referenceId: number, initContent?: XmlComponent);
- add(item: Paragraph | Table): HeaderWrapper;
- addChildElement(childElement: XmlComponent | string): void;
- get View(): Header_2;
- get Relationships(): Relationships;
- get Media(): Media;
- }
-
- export declare const HeadingLevel: {
- readonly HEADING_1: "Heading1";
- readonly HEADING_2: "Heading2";
- readonly HEADING_3: "Heading3";
- readonly HEADING_4: "Heading4";
- readonly HEADING_5: "Heading5";
- readonly HEADING_6: "Heading6";
- readonly TITLE: "Title";
- };
-
- export declare const HeightRule: {
- readonly AUTO: "auto";
- readonly ATLEAST: "atLeast";
- readonly EXACT: "exact";
- };
-
- export declare const hexColorValue: (val: string) => string;
-
- export declare const HighlightColor: {
- readonly BLACK: "black";
- readonly BLUE: "blue";
- readonly CYAN: "cyan";
- readonly DARK_BLUE: "darkBlue";
- readonly DARK_CYAN: "darkCyan";
- readonly DARK_GRAY: "darkGray";
- readonly DARK_GREEN: "darkGreen";
- readonly DARK_MAGENTA: "darkMagenta";
- readonly DARK_RED: "darkRed";
- readonly DARK_YELLOW: "darkYellow";
- readonly GREEN: "green";
- readonly LIGHT_GRAY: "lightGray";
- readonly MAGENTA: "magenta";
- readonly NONE: "none";
- readonly RED: "red";
- readonly WHITE: "white";
- readonly YELLOW: "yellow";
- };
-
- export declare const HorizontalPositionAlign: {
- readonly CENTER: "center";
- readonly INSIDE: "inside";
- readonly LEFT: "left";
- readonly OUTSIDE: "outside";
- readonly RIGHT: "right";
- };
-
- export declare const HorizontalPositionRelativeFrom: {
- readonly CHARACTER: "character";
- readonly COLUMN: "column";
- readonly INSIDE_MARGIN: "insideMargin";
- readonly LEFT_MARGIN: "leftMargin";
- readonly MARGIN: "margin";
- readonly OUTSIDE_MARGIN: "outsideMargin";
- readonly PAGE: "page";
- readonly RIGHT_MARGIN: "rightMargin";
- };
-
- export declare class HpsMeasureElement extends XmlComponent {
- constructor(name: string, val: number | PositiveUniversalMeasure);
- }
-
- export declare const hpsMeasureValue: (val: PositiveUniversalMeasure | number) => string | number;
-
- export declare const HyperlinkType: {
- readonly INTERNAL: "INTERNAL";
- readonly EXTERNAL: "EXTERNAL";
- };
-
- export declare type IAlignmentFrameOptions = {
- readonly type: "alignment";
- readonly alignment: {
- readonly x: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
- readonly y: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
- };
- } & IBaseFrameOptions;
-
- export declare type IBaseCharacterStyleOptions = {
- readonly run?: IRunStylePropertiesOptions;
- } & IStyleOptions;
-
- declare type IBaseFrameOptions = {
- readonly anchorLock?: boolean;
- readonly dropCap?: (typeof DropCapType)[keyof typeof DropCapType];
- readonly width: number;
- readonly height: number;
- readonly wrap?: (typeof FrameWrap)[keyof typeof FrameWrap];
- readonly lines?: number;
- readonly anchor: {
- readonly horizontal: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
- readonly vertical: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
- };
- readonly space?: {
- readonly horizontal: number;
- readonly vertical: number;
- };
- readonly rule?: (typeof HeightRule)[keyof typeof HeightRule];
- };
-
- export declare type IBaseParagraphStyleOptions = {
- readonly paragraph?: IParagraphStylePropertiesOptions;
- readonly run?: IRunStylePropertiesOptions;
- } & IStyleOptions;
-
- export declare type IBodyPropertiesOptions = {
- readonly wrap?: (typeof TextWrappingType)[keyof typeof TextWrappingType];
- readonly verticalAnchor?: VerticalAnchor;
- readonly margins?: {
- readonly top?: number;
- readonly bottom?: number;
- readonly left?: number;
- readonly right?: number;
- };
- readonly noAutoFit?: boolean;
- };
-
- export declare type IBookmarkOptions = {
- readonly id: string;
- readonly children: readonly ParagraphChild[];
- };
-
- export declare type IBorderOptions = {
- readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
- readonly color?: string;
- readonly size?: number;
- readonly space?: number;
- };
-
- export declare type IBordersOptions = {
- readonly top?: IBorderOptions;
- readonly bottom?: IBorderOptions;
- readonly left?: IBorderOptions;
- readonly right?: IBorderOptions;
- readonly between?: IBorderOptions;
- };
-
- export declare type ICellMergeAttributes = IChangedAttributesProperties & {
- readonly verticalMerge?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
- readonly verticalMergeOriginal?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
- };
-
- declare type IChangedAttributesProperties = {
- readonly id: number;
- readonly author: string;
- readonly date: string;
- };
-
- export declare type ICharacterStyleOptions = {
- readonly id: string;
- } & IBaseCharacterStyleOptions;
-
- export declare type ICheckboxSymbolOptions = {
- readonly alias?: string;
- readonly checked?: boolean;
- readonly checkedState?: ICheckboxSymbolProperties;
- readonly uncheckedState?: ICheckboxSymbolProperties;
- };
-
- export declare type ICheckboxSymbolProperties = {
- readonly value?: string;
- readonly font?: string;
- };
-
- export declare type IColumnAttributes = {
- readonly width: number | PositiveUniversalMeasure;
- readonly space?: number | PositiveUniversalMeasure;
- };
-
- export declare type IColumnsAttributes = {
- readonly space?: number | PositiveUniversalMeasure;
- readonly count?: number;
- readonly separate?: boolean;
- readonly equalWidth?: boolean;
- readonly children?: readonly Column[];
- };
-
- export declare type ICommentOptions = {
- readonly id: number;
- readonly children: readonly FileChild[];
- readonly initials?: string;
- readonly author?: string;
- readonly date?: Date;
- };
-
- export declare type ICommentsOptions = {
- readonly children: readonly ICommentOptions[];
- };
-
- declare type ICompatibilityOptions = {
- readonly version?: number;
- readonly useSingleBorderforContiguousCells?: boolean;
- readonly wordPerfectJustification?: boolean;
- readonly noTabStopForHangingIndent?: boolean;
- readonly noLeading?: boolean;
- readonly spaceForUnderline?: boolean;
- readonly noColumnBalance?: boolean;
- readonly balanceSingleByteDoubleByteWidth?: boolean;
- readonly noExtraLineSpacing?: boolean;
- readonly doNotLeaveBackslashAlone?: boolean;
- readonly underlineTrailingSpaces?: boolean;
- readonly doNotExpandShiftReturn?: boolean;
- readonly spacingInWholePoints?: boolean;
- readonly lineWrapLikeWord6?: boolean;
- readonly printBodyTextBeforeHeader?: boolean;
- readonly printColorsBlack?: boolean;
- readonly spaceWidth?: boolean;
- readonly showBreaksInFrames?: boolean;
- readonly subFontBySize?: boolean;
- readonly suppressBottomSpacing?: boolean;
- readonly suppressTopSpacing?: boolean;
- readonly suppressSpacingAtTopOfPage?: boolean;
- readonly suppressTopSpacingWP?: boolean;
- readonly suppressSpBfAfterPgBrk?: boolean;
- readonly swapBordersFacingPages?: boolean;
- readonly convertMailMergeEsc?: boolean;
- readonly truncateFontHeightsLikeWP6?: boolean;
- readonly macWordSmallCaps?: boolean;
- readonly usePrinterMetrics?: boolean;
- readonly doNotSuppressParagraphBorders?: boolean;
- readonly wrapTrailSpaces?: boolean;
- readonly footnoteLayoutLikeWW8?: boolean;
- readonly shapeLayoutLikeWW8?: boolean;
- readonly alignTablesRowByRow?: boolean;
- readonly forgetLastTabAlignment?: boolean;
- readonly adjustLineHeightInTable?: boolean;
- readonly autoSpaceLikeWord95?: boolean;
- readonly noSpaceRaiseLower?: boolean;
- readonly doNotUseHTMLParagraphAutoSpacing?: boolean;
- readonly layoutRawTableWidth?: boolean;
- readonly layoutTableRowsApart?: boolean;
- readonly useWord97LineBreakRules?: boolean;
- readonly doNotBreakWrappedTables?: boolean;
- readonly doNotSnapToGridInCell?: boolean;
- readonly selectFieldWithFirstOrLastCharacter?: boolean;
- readonly applyBreakingRules?: boolean;
- readonly doNotWrapTextWithPunctuation?: boolean;
- readonly doNotUseEastAsianBreakRules?: boolean;
- readonly useWord2002TableStyleRules?: boolean;
- readonly growAutofit?: boolean;
- readonly useFELayout?: boolean;
- readonly useNormalStyleForList?: boolean;
- readonly doNotUseIndentAsNumberingTabStop?: boolean;
- readonly useAlternateEastAsianLineBreakRules?: boolean;
- readonly allowSpaceOfSameStyleInTable?: boolean;
- readonly doNotSuppressIndentation?: boolean;
- readonly doNotAutofitConstrainedTables?: boolean;
- readonly autofitToFirstFixedWidthCell?: boolean;
- readonly underlineTabInNumberingList?: boolean;
- readonly displayHangulFixedWidth?: boolean;
- readonly splitPgBreakAndParaMark?: boolean;
- readonly doNotVerticallyAlignCellWithSp?: boolean;
- readonly doNotBreakConstrainedForcedTable?: boolean;
- readonly ignoreVerticalAlignmentInTextboxes?: boolean;
- readonly useAnsiKerningPairs?: boolean;
- readonly cachedColumnBalance?: boolean;
- };
-
- export declare type IConcreteNumberingOptions = {
- readonly numId: number;
- readonly abstractNumId: number;
- readonly reference: string;
- readonly instance: number;
- readonly overrideLevels?: readonly IOverrideLevel[];
- };
-
- export declare type IContext = {
- readonly file: File_2;
- readonly viewWrapper: IViewWrapper;
- readonly stack: IXmlableObject[];
- };
-
- declare type ICustomPropertyOptions = {
- readonly name: string;
- readonly value: string;
- };
-
- declare type IDefaultStylesOptions = {
- readonly document?: IDocumentDefaultsOptions;
- readonly title?: IBaseParagraphStyleOptions;
- readonly heading1?: IBaseParagraphStyleOptions;
- readonly heading2?: IBaseParagraphStyleOptions;
- readonly heading3?: IBaseParagraphStyleOptions;
- readonly heading4?: IBaseParagraphStyleOptions;
- readonly heading5?: IBaseParagraphStyleOptions;
- readonly heading6?: IBaseParagraphStyleOptions;
- readonly strong?: IBaseParagraphStyleOptions;
- readonly listParagraph?: IBaseParagraphStyleOptions;
- readonly hyperlink?: IBaseCharacterStyleOptions;
- readonly footnoteReference?: IBaseCharacterStyleOptions;
- readonly footnoteText?: IBaseParagraphStyleOptions;
- readonly footnoteTextChar?: IBaseCharacterStyleOptions;
- readonly endnoteReference?: IBaseCharacterStyleOptions;
- readonly endnoteText?: IBaseParagraphStyleOptions;
- readonly endnoteTextChar?: IBaseCharacterStyleOptions;
- };
-
- declare type IDeletedRunOptions = IRunOptions & IChangedAttributesProperties;
-
- export declare type IDistance = {
- readonly distT?: number;
- readonly distB?: number;
- readonly distL?: number;
- readonly distR?: number;
- };
-
- export declare type IDocGridAttributesProperties = {
- readonly type?: (typeof DocumentGridType)[keyof typeof DocumentGridType];
- readonly linePitch: number;
- readonly charSpace?: number;
- };
-
- export declare type IDocumentAttributesProperties = Partial<Record<DocumentAttributeNamespace, string>> & {
- readonly Ignorable?: string;
- };
-
- export declare type IDocumentBackgroundOptions = {
- readonly color?: string;
- readonly themeColor?: string;
- readonly themeShade?: string;
- readonly themeTint?: string;
- };
-
- export declare type IDocumentDefaultsOptions = {
- readonly paragraph?: IParagraphStylePropertiesOptions;
- readonly run?: IRunStylePropertiesOptions;
- };
-
- export declare type IDocumentFooter = {
- readonly footer: FooterWrapper;
- readonly type: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
- };
-
- export declare type IDocumentHeader = {
- readonly header: HeaderWrapper;
- readonly type: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
- };
-
- export declare type IDocumentOptions = {
- readonly background?: IDocumentBackgroundOptions;
- };
-
- export declare type IDrawingOptions = {
- readonly floating?: IFloating;
- readonly docProperties?: DocPropertiesOptions;
- readonly outline?: OutlineOptions;
- readonly solidFill?: SolidFillOptions;
- };
-
- export declare type IExtendedMediaData = IMediaData | WpsMediaData | WpgMediaData;
-
- export declare type IExternalHyperlinkOptions = {
- readonly children: readonly ParagraphChild[];
- readonly link: string;
- };
-
- export declare type IFloating = {
- readonly horizontalPosition: IHorizontalPositionOptions;
- readonly verticalPosition: IVerticalPositionOptions;
- readonly allowOverlap?: boolean;
- readonly lockAnchor?: boolean;
- readonly behindDocument?: boolean;
- readonly layoutInCell?: boolean;
- readonly margins?: IMargins;
- readonly wrap?: ITextWrapping;
- readonly zIndex?: number;
- };
-
- export declare type IFontAttributesProperties = {
- readonly ascii?: string;
- readonly cs?: string;
- readonly eastAsia?: string;
- readonly hAnsi?: string;
- readonly hint?: string;
- };
-
- declare type IFontOptions = {
- readonly name: string;
- readonly hint?: string;
- };
-
- export declare type IFrameOptions = IXYFrameOptions | IAlignmentFrameOptions;
-
- export declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
- private readonly includeIfEmpty;
- constructor(rootKey: string, includeIfEmpty?: boolean);
- prepForXml(context: IContext): IXmlableObject | undefined;
- }
-
- export declare type IGroupChildMediaData = (WpsMediaData | IMediaData) & WpgCommonMediaData;
-
- export declare type IHeaderFooterGroup<T> = {
- readonly default?: T;
- readonly first?: T;
- readonly even?: T;
- };
-
- export declare type IHeaderFooterOptions = {
- readonly type?: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
- readonly id?: number;
- };
-
- export declare type IHeaderOptions = {
- readonly children: readonly (Paragraph | Table)[];
- };
-
- export declare type IHorizontalPositionOptions = {
- readonly relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
- readonly align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
- readonly offset?: number;
- };
-
- declare type IHyphenationOptions = {
- readonly autoHyphenation?: boolean;
- readonly hyphenationZone?: number;
- readonly consecutiveHyphenLimit?: number;
- readonly doNotHyphenateCaps?: boolean;
- };
-
- export declare type IImageOptions = (RegularImageOptions | SvgMediaOptions) & CoreImageOptions;
-
- export declare type IIndentAttributesProperties = {
- readonly start?: number | UniversalMeasure;
- readonly end?: number | UniversalMeasure;
- readonly left?: number | UniversalMeasure;
- readonly right?: number | UniversalMeasure;
- readonly hanging?: number | PositiveUniversalMeasure;
- readonly firstLine?: number | PositiveUniversalMeasure;
- };
-
- declare type IInsertedRunOptions = IChangedAttributesProperties & IRunOptions;
-
- export declare type IInternalHyperlinkOptions = {
- readonly children: readonly ParagraphChild[];
- readonly anchor: string;
- };
-
- declare type ILanguageOptions = {
- readonly value?: string;
- readonly eastAsia?: string;
- readonly bidirectional?: string;
- };
-
- export declare type ILevelParagraphStylePropertiesOptions = {
- readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
- readonly thematicBreak?: boolean;
- readonly contextualSpacing?: boolean;
- readonly rightTabStop?: number;
- readonly leftTabStop?: number;
- readonly indent?: IIndentAttributesProperties;
- readonly spacing?: ISpacingProperties;
- readonly keepNext?: boolean;
- readonly keepLines?: boolean;
- readonly outlineLevel?: number;
- };
-
- export declare type ILevelsOptions = {
- readonly level: number;
- readonly format?: (typeof LevelFormat)[keyof typeof LevelFormat];
- readonly text?: string;
- readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
- readonly start?: number;
- readonly suffix?: (typeof LevelSuffix)[keyof typeof LevelSuffix];
- readonly isLegalNumberingStyle?: boolean;
- readonly style?: {
- readonly run?: IRunStylePropertiesOptions;
- readonly paragraph?: ILevelParagraphStylePropertiesOptions;
- };
- };
-
- export declare type ILineNumberAttributes = {
- readonly countBy?: number;
- readonly start?: number;
- readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
- readonly distance?: number | PositiveUniversalMeasure;
- };
-
- export declare class ImageRun extends Run {
- private readonly imageData;
- constructor(options: IImageOptions);
- prepForXml(context: IContext): IXmlableObject | undefined;
- }
-
- export declare type IMargins = {
- readonly left?: number;
- readonly bottom?: number;
- readonly top?: number;
- readonly right?: number;
- };
-
- export declare type IMathFractionOptions = {
- readonly numerator: readonly MathComponent[];
- readonly denominator: readonly MathComponent[];
- };
-
- export declare type IMathFunctionOptions = {
- readonly children: readonly MathComponent[];
- readonly name: readonly MathComponent[];
- };
-
- export declare type IMathIntegralOptions = {
- readonly children: readonly MathComponent[];
- readonly subScript?: readonly MathComponent[];
- readonly superScript?: readonly MathComponent[];
- };
-
- export declare type IMathLimitLowerOptions = {
- readonly children: readonly MathComponent[];
- readonly limit: readonly MathComponent[];
- };
-
- export declare type IMathLimitUpperOptions = {
- readonly children: readonly MathComponent[];
- readonly limit: readonly MathComponent[];
- };
-
- export declare type IMathOptions = {
- readonly children: readonly MathComponent[];
- };
-
- export declare type IMathPreSubSuperScriptOptions = {
- readonly children: readonly MathComponent[];
- readonly subScript: readonly MathComponent[];
- readonly superScript: readonly MathComponent[];
- };
-
- export declare type IMathRadicalOptions = {
- readonly children: readonly MathComponent[];
- readonly degree?: readonly MathComponent[];
- };
-
- export declare type IMathSubScriptOptions = {
- readonly children: readonly MathComponent[];
- readonly subScript: readonly MathComponent[];
- };
-
- export declare type IMathSubSuperScriptOptions = {
- readonly children: readonly MathComponent[];
- readonly subScript: readonly MathComponent[];
- readonly superScript: readonly MathComponent[];
- };
-
- export declare type IMathSumOptions = {
- readonly children: readonly MathComponent[];
- readonly subScript?: readonly MathComponent[];
- readonly superScript?: readonly MathComponent[];
- };
-
- export declare type IMathSuperScriptOptions = {
- readonly children: readonly MathComponent[];
- readonly superScript: readonly MathComponent[];
- };
-
- export declare type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
-
- export declare type IMediaDataTransformation = {
- readonly offset?: {
- readonly pixels: {
- readonly x: number;
- readonly y: number;
- };
- readonly emus?: {
- readonly x: number;
- readonly y: number;
- };
- };
- readonly pixels: {
- readonly x: number;
- readonly y: number;
- };
- readonly emus: {
- readonly x: number;
- readonly y: number;
- };
- readonly flip?: {
- readonly vertical?: boolean;
- readonly horizontal?: boolean;
- };
- readonly rotation?: number;
- };
-
- export declare type IMediaTransformation = {
- readonly offset?: {
- readonly top?: number;
- readonly left?: number;
- };
- readonly width: number;
- readonly height: number;
- readonly flip?: {
- readonly vertical?: boolean;
- readonly horizontal?: boolean;
- };
- readonly rotation?: number;
- };
-
- export declare class ImportedRootElementAttributes extends XmlComponent {
- private readonly _attr;
- constructor(_attr: any);
- prepForXml(_: IContext): IXmlableObject;
- }
-
- export declare class ImportedXmlComponent extends XmlComponent {
- static fromXmlString(importedContent: string): ImportedXmlComponent;
- constructor(rootKey: string, _attr?: any);
- push(xmlComponent: XmlComponent | string): void;
- }
-
- export declare abstract class InitializableXmlComponent extends XmlComponent {
- constructor(rootKey: string, initComponent?: InitializableXmlComponent);
- }
-
- declare type INonVisualShapePropertiesOptions = {
- readonly txBox: string;
- };
-
- export declare type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream | default_2;
-
- export declare class InsertedTableCell extends XmlComponent {
- constructor(options: IChangedAttributesProperties);
- }
-
- export declare class InsertedTableRow extends XmlComponent {
- constructor(options: IChangedAttributesProperties);
- }
-
- export declare class InsertedTextRun extends XmlComponent {
- constructor(options: IInsertedRunOptions);
- }
-
- export declare class InternalHyperlink extends ConcreteHyperlink {
- constructor(options: IInternalHyperlinkOptions);
- }
-
- export declare type INumberedItemReferenceOptions = {
- readonly hyperlink?: boolean;
- readonly referenceFormat?: NumberedItemReferenceFormat;
- };
-
- export declare type INumberingOptions = {
- readonly config: readonly {
- readonly levels: readonly ILevelsOptions[];
- readonly reference: string;
- }[];
- };
-
- declare type IOverrideLevel = {
- readonly num: number;
- readonly start?: number;
- };
-
- export declare type IPageBorderAttributes = {
- readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
- readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
- readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
- };
-
- export declare type IPageBordersOptions = {
- readonly pageBorders?: IPageBorderAttributes;
- readonly pageBorderTop?: IBorderOptions;
- readonly pageBorderRight?: IBorderOptions;
- readonly pageBorderBottom?: IBorderOptions;
- readonly pageBorderLeft?: IBorderOptions;
- };
-
- export declare type IPageMarginAttributes = {
- readonly top?: number | UniversalMeasure;
- readonly right?: number | PositiveUniversalMeasure;
- readonly bottom?: number | UniversalMeasure;
- readonly left?: number | PositiveUniversalMeasure;
- readonly header?: number | PositiveUniversalMeasure;
- readonly footer?: number | PositiveUniversalMeasure;
- readonly gutter?: number | PositiveUniversalMeasure;
- };
-
- export declare type IPageNumberTypeAttributes = {
- readonly start?: number;
- readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
- readonly separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
- };
-
- export declare type IPageReferenceOptions = {
- readonly hyperlink?: boolean;
- readonly useRelativePosition?: boolean;
- };
-
- export declare type IPageSizeAttributes = {
- readonly width: number | PositiveUniversalMeasure;
- readonly height: number | PositiveUniversalMeasure;
- readonly orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
- readonly code?: number;
- };
-
- export declare type IParagraphOptions = {
- readonly text?: string;
- readonly children?: readonly ParagraphChild[];
- } & IParagraphPropertiesOptions;
-
- export declare type IParagraphPropertiesChangeOptions = IChangedAttributesProperties & IParagraphPropertiesOptionsBase;
-
- export declare type IParagraphPropertiesOptions = {
- readonly revision?: IParagraphPropertiesChangeOptions;
- readonly includeIfEmpty?: boolean;
- } & IParagraphPropertiesOptionsBase;
-
- export declare type IParagraphPropertiesOptionsBase = {
- readonly heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
- readonly bidirectional?: boolean;
- readonly pageBreakBefore?: boolean;
- readonly tabStops?: readonly TabStopDefinition[];
- readonly style?: string;
- readonly bullet?: {
- readonly level: number;
- };
- readonly widowControl?: boolean;
- readonly frame?: IFrameOptions;
- readonly suppressLineNumbers?: boolean;
- readonly wordWrap?: boolean;
- readonly overflowPunctuation?: boolean;
- readonly scale?: number;
- readonly autoSpaceEastAsianText?: boolean;
- readonly run?: IParagraphRunOptions;
- } & IParagraphStylePropertiesOptions;
-
- export declare type IParagraphRunOptions = IRunOptionsBase & IParagraphRunPropertiesOptions;
-
- export declare type IParagraphRunPropertiesOptions = {
- readonly insertion?: IChangedAttributesProperties;
- readonly deletion?: IChangedAttributesProperties;
- } & IRunPropertiesOptions;
-
- export declare type IParagraphStyleOptions = {
- readonly id: string;
- } & IBaseParagraphStyleOptions;
-
- export declare type IParagraphStylePropertiesOptions = {
- readonly border?: IBordersOptions;
- readonly shading?: IShadingAttributesProperties;
- readonly numbering?: {
- readonly reference: string;
- readonly level: number;
- readonly instance?: number;
- readonly custom?: boolean;
- } | false;
- } & ILevelParagraphStylePropertiesOptions;
-
- export declare type IPatch = ParagraphPatch | FilePatch;
-
- export declare type IPropertiesOptions = {
- readonly sections: readonly ISectionOptions[];
- readonly title?: string;
- readonly subject?: string;
- readonly creator?: string;
- readonly keywords?: string;
- readonly description?: string;
- readonly lastModifiedBy?: string;
- readonly revision?: number;
- readonly externalStyles?: string;
- readonly styles?: IStylesOptions;
- readonly numbering?: INumberingOptions;
- readonly comments?: ICommentsOptions;
- readonly footnotes?: Readonly<Record<string, {
- readonly children: readonly Paragraph[];
- }>>;
- readonly endnotes?: Readonly<Record<string, {
- readonly children: readonly Paragraph[];
- }>>;
- readonly background?: IDocumentBackgroundOptions;
- readonly features?: {
- readonly trackRevisions?: boolean;
- readonly updateFields?: boolean;
- };
- readonly compatabilityModeVersion?: number;
- readonly compatibility?: ICompatibilityOptions;
- readonly customProperties?: readonly ICustomPropertyOptions[];
- readonly evenAndOddHeaderAndFooters?: boolean;
- readonly defaultTabStop?: number;
- readonly fonts?: readonly FontOptions[];
- readonly hyphenation?: IHyphenationOptions;
- };
-
- export declare type IRunOptions = IRunOptionsBase & IRunPropertiesOptions;
-
- declare type IRunOptionsBase = {
- readonly children?: readonly (FieldInstruction | (typeof PageNumber)[keyof typeof PageNumber] | FootnoteReferenceRun | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | XmlComponent | string)[];
- readonly break?: number;
- readonly text?: string;
- };
-
- export declare type IRunPropertiesChangeOptions = {} & IRunPropertiesOptions & IChangedAttributesProperties;
-
- export declare type IRunPropertiesOptions = {
- readonly style?: string;
- } & IRunStylePropertiesOptions;
-
- export declare type IRunStylePropertiesOptions = {
- readonly noProof?: boolean;
- readonly bold?: boolean;
- readonly boldComplexScript?: boolean;
- readonly italics?: boolean;
- readonly italicsComplexScript?: boolean;
- readonly underline?: {
- readonly color?: string;
- readonly type?: (typeof UnderlineType)[keyof typeof UnderlineType];
- };
- readonly effect?: (typeof TextEffect)[keyof typeof TextEffect];
- readonly emphasisMark?: {
- readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
- };
- readonly color?: string;
- readonly kern?: number | PositiveUniversalMeasure;
- readonly position?: UniversalMeasure;
- readonly size?: number | PositiveUniversalMeasure;
- readonly sizeComplexScript?: boolean | number | PositiveUniversalMeasure;
- readonly rightToLeft?: boolean;
- readonly smallCaps?: boolean;
- readonly allCaps?: boolean;
- readonly strike?: boolean;
- readonly doubleStrike?: boolean;
- readonly subScript?: boolean;
- readonly superScript?: boolean;
- readonly font?: string | IFontOptions | IFontAttributesProperties;
- readonly highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
- readonly highlightComplexScript?: boolean | string;
- readonly characterSpacing?: number;
- readonly shading?: IShadingAttributesProperties;
- readonly emboss?: boolean;
- readonly imprint?: boolean;
- readonly revision?: IRunPropertiesChangeOptions;
- readonly language?: ILanguageOptions;
- readonly border?: IBorderOptions;
- readonly snapToGrid?: boolean;
- readonly vanish?: boolean;
- readonly specVanish?: boolean;
- readonly scale?: number;
- readonly math?: boolean;
- };
-
- export declare type ISectionOptions = {
- readonly headers?: {
- readonly default?: Header;
- readonly first?: Header;
- readonly even?: Header;
- };
- readonly footers?: {
- readonly default?: Footer;
- readonly first?: Footer;
- readonly even?: Footer;
- };
- readonly properties?: ISectionPropertiesOptions;
- readonly children: readonly FileChild[];
- };
-
- export declare type ISectionPropertiesChangeOptions = IChangedAttributesProperties & ISectionPropertiesOptionsBase;
-
- export declare type ISectionPropertiesOptions = {
- readonly revision?: ISectionPropertiesChangeOptions;
- } & ISectionPropertiesOptionsBase;
-
- export declare type ISectionPropertiesOptionsBase = {
- readonly page?: {
- readonly size?: Partial<IPageSizeAttributes>;
- readonly margin?: IPageMarginAttributes;
- readonly pageNumbers?: IPageNumberTypeAttributes;
- readonly borders?: IPageBordersOptions;
- readonly textDirection?: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType];
- };
- readonly grid?: Partial<IDocGridAttributesProperties>;
- readonly headerWrapperGroup?: IHeaderFooterGroup<HeaderWrapper>;
- readonly footerWrapperGroup?: IHeaderFooterGroup<FooterWrapper>;
- readonly lineNumbers?: ILineNumberAttributes;
- readonly titlePage?: boolean;
- readonly verticalAlign?: SectionVerticalAlign;
- readonly column?: IColumnsAttributes;
- readonly type?: (typeof SectionType)[keyof typeof SectionType];
- };
-
- declare type ISettingsOptions = {
- readonly compatibilityModeVersion?: number;
- readonly evenAndOddHeaders?: boolean;
- readonly trackRevisions?: boolean;
- readonly updateFields?: boolean;
- readonly compatibility?: ICompatibilityOptions;
- readonly defaultTabStop?: number;
- readonly hyphenation?: IHyphenationOptions;
- };
-
- export declare type IShadingAttributesProperties = {
- readonly fill?: string;
- readonly color?: string;
- readonly type?: (typeof ShadingType)[keyof typeof ShadingType];
- };
-
- export declare type ISpacingProperties = {
- readonly after?: number;
- readonly before?: number;
- readonly line?: number;
- readonly lineRule?: (typeof LineRuleType)[keyof typeof LineRuleType];
- readonly beforeAutoSpacing?: boolean;
- readonly afterAutoSpacing?: boolean;
- };
-
- declare type IStyleAttributes = {
- readonly type?: string;
- readonly styleId?: string;
- readonly default?: boolean;
- readonly customStyle?: string;
- };
-
- declare type IStyleOptions = {
- readonly name?: string;
- readonly basedOn?: string;
- readonly next?: string;
- readonly link?: string;
- readonly uiPriority?: number;
- readonly semiHidden?: boolean;
- readonly unhideWhenUsed?: boolean;
- readonly quickFormat?: boolean;
- };
-
- export declare type IStylesOptions = {
- readonly default?: IDefaultStylesOptions;
- readonly initialStyles?: BaseXmlComponent;
- readonly paragraphStyles?: readonly IParagraphStyleOptions[];
- readonly characterStyles?: readonly ICharacterStyleOptions[];
- readonly importedStyles?: readonly (XmlComponent | StyleForParagraph | StyleForCharacter | ImportedXmlComponent)[];
- };
-
- export declare type ISymbolRunOptions = {
- readonly char: string;
- readonly symbolfont?: string;
- } & IRunOptions;
-
- export declare type ITableBordersOptions = {
- readonly top?: IBorderOptions;
- readonly bottom?: IBorderOptions;
- readonly left?: IBorderOptions;
- readonly right?: IBorderOptions;
- readonly insideHorizontal?: IBorderOptions;
- readonly insideVertical?: IBorderOptions;
- };
-
- export declare type ITableCellBorders = {
- readonly top?: IBorderOptions;
- readonly start?: IBorderOptions;
- readonly left?: IBorderOptions;
- readonly bottom?: IBorderOptions;
- readonly end?: IBorderOptions;
- readonly right?: IBorderOptions;
- };
-
- declare type ITableCellMarginOptions = {
- readonly marginUnitType?: (typeof WidthType)[keyof typeof WidthType];
- readonly top?: number;
- readonly bottom?: number;
- readonly left?: number;
- readonly right?: number;
- };
-
- export declare type ITableCellOptions = {
- readonly children: readonly (Paragraph | Table)[];
- } & ITableCellPropertiesOptions;
-
- declare type ITableCellPropertiesChangeOptions = ITableCellPropertiesOptionsBase & IChangedAttributesProperties;
-
- declare type ITableCellPropertiesOptions = {
- readonly revision?: ITableCellPropertiesChangeOptions;
- readonly includeIfEmpty?: boolean;
- } & ITableCellPropertiesOptionsBase;
-
- declare type ITableCellPropertiesOptionsBase = {
- readonly shading?: IShadingAttributesProperties;
- readonly margins?: ITableCellMarginOptions;
- readonly verticalAlign?: TableVerticalAlign;
- readonly textDirection?: (typeof TextDirection)[keyof typeof TextDirection];
- readonly verticalMerge?: (typeof VerticalMergeType)[keyof typeof VerticalMergeType];
- readonly width?: ITableWidthProperties;
- readonly columnSpan?: number;
- readonly rowSpan?: number;
- readonly borders?: ITableCellBorders;
- readonly insertion?: IChangedAttributesProperties;
- readonly deletion?: IChangedAttributesProperties;
- readonly cellMerge?: ICellMergeAttributes;
- };
-
- declare type ITableCellSpacingProperties = {
- readonly value: number | Percentage | UniversalMeasure;
- readonly type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
- };
-
- export declare type ITableFloatOptions = {
- readonly horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
- readonly absoluteHorizontalPosition?: number | UniversalMeasure;
- readonly relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
- readonly verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
- readonly absoluteVerticalPosition?: number | UniversalMeasure;
- readonly relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
- readonly bottomFromText?: number | PositiveUniversalMeasure;
- readonly topFromText?: number | PositiveUniversalMeasure;
- readonly leftFromText?: number | PositiveUniversalMeasure;
- readonly rightFromText?: number | PositiveUniversalMeasure;
- readonly overlap?: (typeof OverlapType)[keyof typeof OverlapType];
- };
-
- declare type ITableGridChangeOptions = {
- readonly id: number;
- readonly columnWidths: readonly number[] | readonly PositiveUniversalMeasure[];
- };
-
- export declare type ITableLookOptions = {
- readonly firstRow?: boolean;
- readonly lastRow?: boolean;
- readonly firstColumn?: boolean;
- readonly lastColumn?: boolean;
- readonly noHBand?: boolean;
- readonly noVBand?: boolean;
- };
-
- export declare type ITableOfContentsOptions = {
- readonly captionLabel?: string;
- readonly entriesFromBookmark?: string;
- readonly captionLabelIncludingNumbers?: string;
- readonly sequenceAndPageNumbersSeparator?: string;
- readonly tcFieldIdentifier?: string;
- readonly hyperlink?: boolean;
- readonly tcFieldLevelRange?: string;
- readonly pageNumbersEntryLevelsRange?: string;
- readonly headingStyleRange?: string;
- readonly entryAndPageNumberSeparator?: string;
- readonly seqFieldIdentifierForPrefix?: string;
- readonly stylesWithLevels?: readonly StyleLevel[];
- readonly useAppliedParagraphOutlineLevel?: boolean;
- readonly preserveTabInEntries?: boolean;
- readonly preserveNewLineInEntries?: boolean;
- readonly hideTabAndPageNumbersInWebView?: boolean;
- };
-
- export declare type ITableOptions = {
- readonly rows: readonly TableRow[];
- readonly width?: ITableWidthProperties;
- readonly columnWidths?: readonly number[];
- readonly columnWidthsRevision?: ITableGridChangeOptions;
- readonly margins?: ITableCellMarginOptions;
- readonly indent?: ITableWidthProperties;
- readonly float?: ITableFloatOptions;
- readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
- readonly style?: string;
- readonly borders?: ITableBordersOptions;
- readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
- readonly visuallyRightToLeft?: boolean;
- readonly tableLook?: ITableLookOptions;
- readonly cellSpacing?: ITableCellSpacingProperties;
- readonly revision?: ITablePropertiesChangeOptions;
- };
-
- export declare type ITablePropertiesChangeOptions = ITablePropertiesOptions & IChangedAttributesProperties;
-
- export declare type ITablePropertiesOptions = {
- readonly revision?: ITablePropertiesChangeOptions;
- readonly includeIfEmpty?: boolean;
- } & ITablePropertiesOptionsBase;
-
- export declare type ITablePropertiesOptionsBase = {
- readonly width?: ITableWidthProperties;
- readonly indent?: ITableWidthProperties;
- readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
- readonly borders?: ITableBordersOptions;
- readonly float?: ITableFloatOptions;
- readonly shading?: IShadingAttributesProperties;
- readonly style?: string;
- readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
- readonly cellMargin?: ITableCellMarginOptions;
- readonly visuallyRightToLeft?: boolean;
- readonly tableLook?: ITableLookOptions;
- readonly cellSpacing?: ITableCellSpacingProperties;
- };
-
- export declare type ITableRowOptions = {
- readonly children: readonly TableCell[];
- } & ITableRowPropertiesOptions;
-
- export declare type ITableRowPropertiesChangeOptions = ITableRowPropertiesOptionsBase & IChangedAttributesProperties;
-
- export declare type ITableRowPropertiesOptions = ITableRowPropertiesOptionsBase & {
- readonly insertion?: IChangedAttributesProperties;
- readonly deletion?: IChangedAttributesProperties;
- readonly revision?: ITableRowPropertiesChangeOptions;
- readonly includeIfEmpty?: boolean;
- };
-
- export declare type ITableRowPropertiesOptionsBase = {
- readonly cantSplit?: boolean;
- readonly tableHeader?: boolean;
- readonly height?: {
- readonly value: number | PositiveUniversalMeasure;
- readonly rule: (typeof HeightRule)[keyof typeof HeightRule];
- };
- readonly cellSpacing?: ITableCellSpacingProperties;
- };
-
- export declare type ITableWidthProperties = {
- readonly size: number | Percentage | UniversalMeasure;
- readonly type?: (typeof WidthType)[keyof typeof WidthType];
- };
-
- declare type ITextboxOptions = Omit<IParagraphOptions, "style"> & {
- readonly style?: VmlShapeStyle;
- };
-
- export declare type ITextWrapping = {
- readonly type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
- readonly side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
- readonly margins?: IDistance;
- };
-
- export declare type IVerticalPositionOptions = {
- readonly relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
- readonly align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
- readonly offset?: number;
- };
-
- declare type IViewWrapper = {
- readonly View: Document_2 | Footer_2 | Header_2 | FootNotes | Endnotes | XmlComponent;
- readonly Relationships: Relationships;
- };
-
- export declare type IWpgGroupOptions = {
- readonly type: "wpg";
- } & CoreGroupOptions;
-
- export declare type IWpsShapeOptions = WpsShapeCoreOptions & {
- readonly type: "wps";
- } & CoreShapeOptions;
-
- export declare interface IXmlableObject extends Record<string, unknown> {
- readonly [key: string]: any;
- }
-
- export declare type IXmlAttribute = Readonly<Record<string, string | number | boolean>>;
-
- declare type IXmlifyedFile = {
- readonly data: string;
- readonly path: string;
- };
-
- export declare type IXYFrameOptions = {
- readonly type: "absolute";
- readonly position: {
- readonly x: number;
- readonly y: number;
- };
- } & IBaseFrameOptions;
-
- export declare class LastRenderedPageBreak extends EmptyElement {
- constructor();
- }
-
- export declare const LeaderType: {
- readonly DOT: "dot";
- readonly HYPHEN: "hyphen";
- readonly MIDDLE_DOT: "middleDot";
- readonly NONE: "none";
- readonly UNDERSCORE: "underscore";
- };
-
- declare type LengthUnit = "auto" | number | Percentage | UniversalMeasure | RelativeMeasure;
-
- export declare class Level extends LevelBase {
- }
-
- export declare class LevelBase extends XmlComponent {
- private readonly paragraphProperties;
- private readonly runProperties;
- constructor({ level, format, text, alignment, start, style, suffix, isLegalNumberingStyle, }: ILevelsOptions);
- }
-
- export declare const LevelFormat: {
- readonly DECIMAL: "decimal";
- readonly UPPER_ROMAN: "upperRoman";
- readonly LOWER_ROMAN: "lowerRoman";
- readonly UPPER_LETTER: "upperLetter";
- readonly LOWER_LETTER: "lowerLetter";
- readonly ORDINAL: "ordinal";
- readonly CARDINAL_TEXT: "cardinalText";
- readonly ORDINAL_TEXT: "ordinalText";
- readonly HEX: "hex";
- readonly CHICAGO: "chicago";
- readonly IDEOGRAPH__DIGITAL: "ideographDigital";
- readonly JAPANESE_COUNTING: "japaneseCounting";
- readonly AIUEO: "aiueo";
- readonly IROHA: "iroha";
- readonly DECIMAL_FULL_WIDTH: "decimalFullWidth";
- readonly DECIMAL_HALF_WIDTH: "decimalHalfWidth";
- readonly JAPANESE_LEGAL: "japaneseLegal";
- readonly JAPANESE_DIGITAL_TEN_THOUSAND: "japaneseDigitalTenThousand";
- readonly DECIMAL_ENCLOSED_CIRCLE: "decimalEnclosedCircle";
- readonly DECIMAL_FULL_WIDTH2: "decimalFullWidth2";
- readonly AIUEO_FULL_WIDTH: "aiueoFullWidth";
- readonly IROHA_FULL_WIDTH: "irohaFullWidth";
- readonly DECIMAL_ZERO: "decimalZero";
- readonly BULLET: "bullet";
- readonly GANADA: "ganada";
- readonly CHOSUNG: "chosung";
- readonly DECIMAL_ENCLOSED_FULLSTOP: "decimalEnclosedFullstop";
- readonly DECIMAL_ENCLOSED_PARENTHESES: "decimalEnclosedParen";
- readonly DECIMAL_ENCLOSED_CIRCLE_CHINESE: "decimalEnclosedCircleChinese";
- readonly IDEOGRAPH_ENCLOSED_CIRCLE: "ideographEnclosedCircle";
- readonly IDEOGRAPH_TRADITIONAL: "ideographTraditional";
- readonly IDEOGRAPH_ZODIAC: "ideographZodiac";
- readonly IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional";
- readonly TAIWANESE_COUNTING: "taiwaneseCounting";
- readonly IDEOGRAPH_LEGAL_TRADITIONAL: "ideographLegalTraditional";
- readonly TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand";
- readonly TAIWANESE_DIGITAL: "taiwaneseDigital";
- readonly CHINESE_COUNTING: "chineseCounting";
- readonly CHINESE_LEGAL_SIMPLIFIED: "chineseLegalSimplified";
- readonly CHINESE_COUNTING_THOUSAND: "chineseCountingThousand";
- readonly KOREAN_DIGITAL: "koreanDigital";
- readonly KOREAN_COUNTING: "koreanCounting";
- readonly KOREAN_LEGAL: "koreanLegal";
- readonly KOREAN_DIGITAL2: "koreanDigital2";
- readonly VIETNAMESE_COUNTING: "vietnameseCounting";
- readonly RUSSIAN_LOWER: "russianLower";
- readonly RUSSIAN_UPPER: "russianUpper";
- readonly NONE: "none";
- readonly NUMBER_IN_DASH: "numberInDash";
- readonly HEBREW1: "hebrew1";
- readonly HEBREW2: "hebrew2";
- readonly ARABIC_ALPHA: "arabicAlpha";
- readonly ARABIC_ABJAD: "arabicAbjad";
- readonly HINDI_VOWELS: "hindiVowels";
- readonly HINDI_CONSONANTS: "hindiConsonants";
- readonly HINDI_NUMBERS: "hindiNumbers";
- readonly HINDI_COUNTING: "hindiCounting";
- readonly THAI_LETTERS: "thaiLetters";
- readonly THAI_NUMBERS: "thaiNumbers";
- readonly THAI_COUNTING: "thaiCounting";
- readonly BAHT_TEXT: "bahtText";
- readonly DOLLAR_TEXT: "dollarText";
- readonly CUSTOM: "custom";
- };
-
- export declare class LevelForOverride extends LevelBase {
- }
-
- export declare class LevelOverride extends XmlComponent {
- constructor(levelNum: number, start?: number);
- }
-
- export declare const LevelSuffix: {
- readonly NOTHING: "nothing";
- readonly SPACE: "space";
- readonly TAB: "tab";
- };
-
- declare const LineCap: {
- readonly ROUND: "rnd";
- readonly SQUARE: "sq";
- readonly FLAT: "flat";
- };
-
- export declare const LineNumberRestartFormat: {
- readonly NEW_PAGE: "newPage";
- readonly NEW_SECTION: "newSection";
- readonly CONTINUOUS: "continuous";
- };
-
- export declare const LineRuleType: {
- readonly AT_LEAST: "atLeast";
- readonly EXACTLY: "exactly";
- readonly EXACT: "exact";
- readonly AUTO: "auto";
- };
-
- export declare const longHexNumber: (val: string) => string;
-
- declare class Math_2 extends XmlComponent {
- constructor(options: IMathOptions);
- }
- export { Math_2 as Math }
-
- declare type MathAccentCharacterOptions = {
- readonly accent: string;
- };
-
- export declare class MathAngledBrackets extends XmlComponent {
- constructor(options: MathAngledBracketsOptions);
- }
-
- declare type MathAngledBracketsOptions = {
- readonly children: readonly MathComponent[];
- };
-
- declare type MathBaseOptions = {
- readonly children: readonly MathComponent[];
- };
-
- export declare type MathComponent = MathRun | MathFraction | MathSum | MathIntegral | MathSuperScript | MathSubScript | MathSubSuperScript | MathRadical | MathFunction | MathRoundBrackets | MathCurlyBrackets | MathAngledBrackets | MathSquareBrackets;
-
- export declare class MathCurlyBrackets extends XmlComponent {
- constructor(options: {
- readonly children: readonly MathComponent[];
- });
- }
-
- export declare class MathDegree extends XmlComponent {
- constructor(children?: readonly MathComponent[]);
- }
-
- export declare class MathDenominator extends XmlComponent {
- constructor(children: readonly MathComponent[]);
- }
-
- export declare class MathFraction extends XmlComponent {
- constructor(options: IMathFractionOptions);
- }
-
- export declare class MathFunction extends XmlComponent {
- constructor(options: IMathFunctionOptions);
- }
-
- export declare class MathFunctionName extends XmlComponent {
- constructor(children: readonly MathComponent[]);
- }
-
- export declare class MathFunctionProperties extends XmlComponent {
- constructor();
- }
-
- export declare class MathIntegral extends XmlComponent {
- constructor(options: IMathIntegralOptions);
- }
-
- export declare class MathLimit extends XmlComponent {
- constructor(children: readonly MathComponent[]);
- }
-
- declare type MathLimitLocationOptions = {
- readonly value?: string;
- };
-
- export declare class MathLimitLower extends XmlComponent {
- constructor(options: IMathLimitLowerOptions);
- }
-
- export declare class MathLimitUpper extends XmlComponent {
- constructor(options: IMathLimitUpperOptions);
- }
-
- declare type MathNAryPropertiesOptions = {
- readonly accent: string;
- readonly hasSuperScript: boolean;
- readonly hasSubScript: boolean;
- readonly limitLocationVal?: string;
- };
-
- export declare class MathNumerator extends XmlComponent {
- constructor(children: readonly MathComponent[]);
- }
-
- export declare class MathPreSubSuperScript extends BuilderElement {
- constructor({ children, subScript, superScript }: IMathPreSubSuperScriptOptions);
- }
-
- export declare class MathRadical extends XmlComponent {
- constructor(options: IMathRadicalOptions);
- }
-
- export declare class MathRadicalProperties extends XmlComponent {
- constructor(hasDegree: boolean);
- }
-
- export declare class MathRoundBrackets extends XmlComponent {
- constructor(options: {
- readonly children: readonly MathComponent[];
- });
- }
-
- export declare class MathRun extends XmlComponent {
- constructor(text: string);
- }
-
- export declare class MathSquareBrackets extends XmlComponent {
- constructor(options: {
- readonly children: readonly MathComponent[];
- });
- }
-
- export declare class MathSubScript extends XmlComponent {
- constructor(options: IMathSubScriptOptions);
- }
-
- declare type MathSubScriptElementOptions = {
- readonly children: readonly MathComponent[];
- };
-
- export declare class MathSubSuperScript extends XmlComponent {
- constructor(options: IMathSubSuperScriptOptions);
- }
-
- export declare class MathSum extends XmlComponent {
- constructor(options: IMathSumOptions);
- }
-
- export declare class MathSuperScript extends XmlComponent {
- constructor(options: IMathSuperScriptOptions);
- }
-
- declare type MathSuperScriptElementOptions = {
- readonly children: readonly MathComponent[];
- };
-
- export declare const measurementOrPercentValue: (val: number | Percentage | UniversalMeasure) => number | UniversalMeasure | Percentage;
-
- export declare class Media {
- private readonly map;
- constructor();
- addImage(key: string, mediaData: IMediaData): void;
- get Array(): readonly IMediaData[];
- }
-
- export declare class MonthLong extends EmptyElement {
- constructor();
- }
-
- export declare class MonthShort extends EmptyElement {
- constructor();
- }
-
- export declare class NextAttributeComponent<T extends AttributeData> extends BaseXmlComponent {
- private readonly root;
- constructor(root: AttributePayload<T>);
- prepForXml(_: IContext): IXmlableObject;
- }
-
- export declare class NoBreakHyphen extends EmptyElement {
- constructor();
- }
-
- export declare class NumberedItemReference extends SimpleField {
- constructor(bookmarkId: string, cachedValue?: string, options?: INumberedItemReferenceOptions);
- }
-
- export declare enum NumberedItemReferenceFormat {
- NONE = "none",
- RELATIVE = "relative",
- NO_CONTEXT = "no_context",
- FULL_CONTEXT = "full_context"
- }
-
- export declare const NumberFormat: {
- readonly DECIMAL: "decimal";
- readonly UPPER_ROMAN: "upperRoman";
- readonly LOWER_ROMAN: "lowerRoman";
- readonly UPPER_LETTER: "upperLetter";
- readonly LOWER_LETTER: "lowerLetter";
- readonly ORDINAL: "ordinal";
- readonly CARDINAL_TEXT: "cardinalText";
- readonly ORDINAL_TEXT: "ordinalText";
- readonly HEX: "hex";
- readonly CHICAGO: "chicago";
- readonly IDEOGRAPH_DIGITAL: "ideographDigital";
- readonly JAPANESE_COUNTING: "japaneseCounting";
- readonly AIUEO: "aiueo";
- readonly IROHA: "iroha";
- readonly DECIMAL_FULL_WIDTH: "decimalFullWidth";
- readonly DECIMAL_HALF_WIDTH: "decimalHalfWidth";
- readonly JAPANESE_LEGAL: "japaneseLegal";
- readonly JAPANESE_DIGITAL_TEN_THOUSAND: "japaneseDigitalTenThousand";
- readonly DECIMAL_ENCLOSED_CIRCLE: "decimalEnclosedCircle";
- readonly DECIMAL_FULL_WIDTH_2: "decimalFullWidth2";
- readonly AIUEO_FULL_WIDTH: "aiueoFullWidth";
- readonly IROHA_FULL_WIDTH: "irohaFullWidth";
- readonly DECIMAL_ZERO: "decimalZero";
- readonly BULLET: "bullet";
- readonly GANADA: "ganada";
- readonly CHOSUNG: "chosung";
- readonly DECIMAL_ENCLOSED_FULL_STOP: "decimalEnclosedFullstop";
- readonly DECIMAL_ENCLOSED_PAREN: "decimalEnclosedParen";
- readonly DECIMAL_ENCLOSED_CIRCLE_CHINESE: "decimalEnclosedCircleChinese";
- readonly IDEOGRAPH_ENCLOSED_CIRCLE: "ideographEnclosedCircle";
- readonly IDEOGRAPH_TRADITIONAL: "ideographTraditional";
- readonly IDEOGRAPH_ZODIAC: "ideographZodiac";
- readonly IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional";
- readonly TAIWANESE_COUNTING: "taiwaneseCounting";
- readonly IDEOGRAPH_LEGAL_TRADITIONAL: "ideographLegalTraditional";
- readonly TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand";
- readonly TAIWANESE_DIGITAL: "taiwaneseDigital";
- readonly CHINESE_COUNTING: "chineseCounting";
- readonly CHINESE_LEGAL_SIMPLIFIED: "chineseLegalSimplified";
- readonly CHINESE_COUNTING_TEN_THOUSAND: "chineseCountingThousand";
- readonly KOREAN_DIGITAL: "koreanDigital";
- readonly KOREAN_COUNTING: "koreanCounting";
- readonly KOREAN_LEGAL: "koreanLegal";
- readonly KOREAN_DIGITAL_2: "koreanDigital2";
- readonly VIETNAMESE_COUNTING: "vietnameseCounting";
- readonly RUSSIAN_LOWER: "russianLower";
- readonly RUSSIAN_UPPER: "russianUpper";
- readonly NONE: "none";
- readonly NUMBER_IN_DASH: "numberInDash";
- readonly HEBREW_1: "hebrew1";
- readonly HEBREW_2: "hebrew2";
- readonly ARABIC_ALPHA: "arabicAlpha";
- readonly ARABIC_ABJAD: "arabicAbjad";
- readonly HINDI_VOWELS: "hindiVowels";
- readonly HINDI_CONSONANTS: "hindiConsonants";
- readonly HINDI_NUMBERS: "hindiNumbers";
- readonly HINDI_COUNTING: "hindiCounting";
- readonly THAI_LETTERS: "thaiLetters";
- readonly THAI_NUMBERS: "thaiNumbers";
- readonly THAI_COUNTING: "thaiCounting";
- readonly BAHT_TEXT: "bahtText";
- readonly DOLLAR_TEXT: "dollarText";
- };
-
- export declare class Numbering extends XmlComponent {
- private readonly abstractNumberingMap;
- private readonly concreteNumberingMap;
- private readonly referenceConfigMap;
- private readonly abstractNumUniqueNumericId;
- private readonly concreteNumUniqueNumericId;
- constructor(options: INumberingOptions);
- prepForXml(context: IContext): IXmlableObject | undefined;
- createConcreteNumberingInstance(reference: string, instance: number): void;
- get ConcreteNumbering(): readonly ConcreteNumbering[];
- get ReferenceConfig(): readonly Record<string, any>[];
- }
-
- export declare class NumberProperties extends XmlComponent {
- constructor(numberId: number | string, indentLevel: number);
- }
-
- export declare class NumberValueElement extends XmlComponent {
- constructor(name: string, val: number);
- }
-
- export declare class OnOffElement extends XmlComponent {
- constructor(name: string, val?: boolean | undefined);
- }
-
- declare type OutlineAttributes = {
- readonly width?: number;
- readonly cap?: keyof typeof LineCap;
- readonly compoundLine?: keyof typeof CompoundLine;
- readonly align?: keyof typeof PenAlignment;
- };
-
- declare type OutlineFillProperties = OutlineNoFill | OutlineSolidFill;
-
- declare type OutlineNoFill = {
- readonly type: "noFill";
- };
-
- declare type OutlineOptions = OutlineAttributes & OutlineFillProperties;
-
- declare type OutlineRgbSolidFill = {
- readonly type: "solidFill";
- readonly solidFillType: "rgb";
- readonly value: string;
- };
-
- declare type OutlineSchemeSolidFill = {
- readonly type: "solidFill";
- readonly solidFillType: "scheme";
- readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
- };
-
- declare type OutlineSolidFill = OutlineRgbSolidFill | OutlineSchemeSolidFill;
-
- export declare type OutputByType = {
- readonly base64: string;
- readonly string: string;
- readonly text: string;
- readonly binarystring: string;
- readonly array: readonly number[];
- readonly uint8array: Uint8Array;
- readonly arraybuffer: ArrayBuffer;
- readonly blob: Blob;
- readonly nodebuffer: Buffer;
- };
-
- export declare type OutputType = keyof OutputByType;
-
- export declare const OverlapType: {
- readonly NEVER: "never";
- readonly OVERLAP: "overlap";
- };
-
- export declare class Packer {
- static pack<T extends OutputType>(file: File_2, type: T, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<OutputByType[T]>;
- static toString(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<string>;
- static toBuffer(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<Buffer>;
- static toBase64String(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<string>;
- static toBlob(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<Blob>;
- static toArrayBuffer(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<ArrayBuffer>;
- static toStream(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Stream;
- private static readonly compiler;
- }
-
- export declare const PageBorderDisplay: {
- readonly ALL_PAGES: "allPages";
- readonly FIRST_PAGE: "firstPage";
- readonly NOT_FIRST_PAGE: "notFirstPage";
- };
-
- export declare const PageBorderOffsetFrom: {
- readonly PAGE: "page";
- readonly TEXT: "text";
- };
-
- export declare class PageBorders extends IgnoreIfEmptyXmlComponent {
- constructor(options?: IPageBordersOptions);
- }
-
- export declare const PageBorderZOrder: {
- readonly BACK: "back";
- readonly FRONT: "front";
- };
-
- export declare class PageBreak extends Run {
- constructor();
- }
-
- export declare class PageBreakBefore extends XmlComponent {
- constructor();
- }
-
- export declare const PageNumber: {
- readonly CURRENT: "CURRENT";
- readonly TOTAL_PAGES: "TOTAL_PAGES";
- readonly TOTAL_PAGES_IN_SECTION: "TOTAL_PAGES_IN_SECTION";
- readonly CURRENT_SECTION: "SECTION";
- };
-
- export declare class PageNumberElement extends EmptyElement {
- constructor();
- }
-
- export declare const PageNumberSeparator: {
- readonly HYPHEN: "hyphen";
- readonly PERIOD: "period";
- readonly COLON: "colon";
- readonly EM_DASH: "emDash";
- readonly EN_DASH: "endash";
- };
-
- export declare const PageOrientation: {
- readonly PORTRAIT: "portrait";
- readonly LANDSCAPE: "landscape";
- };
-
- export declare class PageReference extends Run {
- constructor(bookmarkId: string, options?: IPageReferenceOptions);
- }
-
- export declare class PageTextDirection extends XmlComponent {
- constructor(value: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType]);
- }
-
- export declare const PageTextDirectionType: {
- readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
- readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
- };
-
- export declare class Paragraph extends FileChild {
- private readonly properties;
- constructor(options: string | IParagraphOptions);
- prepForXml(context: IContext): IXmlableObject | undefined;
- addRunToFront(run: Run): Paragraph;
- }
-
- export declare type ParagraphChild = TextRun | ImageRun | SymbolRun | Bookmark | PageBreak | ColumnBreak | SequentialIdentifier | FootnoteReferenceRun | InternalHyperlink | ExternalHyperlink | InsertedTextRun | DeletedTextRun | Math_2 | SimpleField | SimpleMailMergeField | Comments | Comment_2 | CommentRangeStart | CommentRangeEnd | CommentReference | CheckBox;
-
- declare type ParagraphPatch = {
- readonly type: typeof PatchType.PARAGRAPH;
- readonly children: readonly ParagraphChild[];
- };
-
- export declare class ParagraphProperties extends IgnoreIfEmptyXmlComponent {
- private readonly numberingReferences;
- constructor(options?: IParagraphPropertiesOptions);
- push(item: XmlComponent): void;
- prepForXml(context: IContext): IXmlableObject | undefined;
- }
-
- export declare class ParagraphPropertiesChange extends XmlComponent {
- constructor(options: IParagraphPropertiesChangeOptions);
- }
-
- export declare class ParagraphPropertiesDefaults extends XmlComponent {
- constructor(options?: IParagraphStylePropertiesOptions);
- }
-
- export declare class ParagraphRunProperties extends RunProperties {
- constructor(options?: IParagraphRunPropertiesOptions);
- }
-
- export declare const patchDetector: ({ data }: PatchDetectorOptions) => Promise<readonly string[]>;
-
- declare type PatchDetectorOptions = {
- readonly data: InputDataType;
- };
-
- export declare const patchDocument: <T extends PatchDocumentOutputType = PatchDocumentOutputType>({ outputType, data, patches, keepOriginalStyles, placeholderDelimiters, recursive, }: PatchDocumentOptions<T>) => Promise<OutputByType[T]>;
-
- export declare type PatchDocumentOptions<T extends PatchDocumentOutputType = PatchDocumentOutputType> = {
- readonly outputType: T;
- readonly data: InputDataType;
- readonly patches: Readonly<Record<string, IPatch>>;
- readonly keepOriginalStyles?: boolean;
- readonly placeholderDelimiters?: Readonly<{
- readonly start: string;
- readonly end: string;
- }>;
- readonly recursive?: boolean;
- };
-
- export declare type PatchDocumentOutputType = OutputType;
-
- export declare const PatchType: {
- readonly DOCUMENT: "file";
- readonly PARAGRAPH: "paragraph";
- };
-
- declare const PenAlignment: {
- readonly CENTER: "ctr";
- readonly INSET: "in";
- };
-
- export declare type Percentage = `${"-" | ""}${number}%`;
-
- export declare const percentageValue: (val: Percentage) => Percentage;
-
- export declare const pointMeasureValue: (val: number) => number;
-
- export declare class PositionalTab extends XmlComponent {
- constructor(options: PositionalTabOptions);
- }
-
- export declare const PositionalTabAlignment: {
- readonly LEFT: "left";
- readonly CENTER: "center";
- readonly RIGHT: "right";
- };
-
- export declare const PositionalTabLeader: {
- readonly NONE: "none";
- readonly DOT: "dot";
- readonly HYPHEN: "hyphen";
- readonly UNDERSCORE: "underscore";
- readonly MIDDLE_DOT: "middleDot";
- };
-
- export declare type PositionalTabOptions = {
- readonly alignment: (typeof PositionalTabAlignment)[keyof typeof PositionalTabAlignment];
- readonly relativeTo: (typeof PositionalTabRelativeTo)[keyof typeof PositionalTabRelativeTo];
- readonly leader: (typeof PositionalTabLeader)[keyof typeof PositionalTabLeader];
- };
-
- export declare const PositionalTabRelativeTo: {
- readonly MARGIN: "margin";
- readonly INDENT: "indent";
- };
-
- export declare type PositivePercentage = `${number}%`;
-
- export declare type PositiveUniversalMeasure = `${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi"}`;
-
- export declare const positiveUniversalMeasureValue: (val: PositiveUniversalMeasure) => PositiveUniversalMeasure;
-
- export declare const PrettifyType: {
- readonly NONE: "";
- readonly WITH_2_BLANKS: " ";
- readonly WITH_4_BLANKS: " ";
- readonly WITH_TAB: "\t";
- };
-
- declare type RegularImageOptions = {
- readonly type: "jpg" | "png" | "gif" | "bmp";
- readonly data: Buffer | string | Uint8Array | ArrayBuffer;
- };
-
- declare type RegularMediaData = {
- readonly type: "jpg" | "png" | "gif" | "bmp";
- };
-
- declare class Relationships extends XmlComponent {
- constructor();
- addRelationship(id: number | string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]): void;
- get RelationshipCount(): number;
- }
-
- declare type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font";
-
- export declare const RelativeHorizontalPosition: {
- readonly CENTER: "center";
- readonly INSIDE: "inside";
- readonly LEFT: "left";
- readonly OUTSIDE: "outside";
- readonly RIGHT: "right";
- };
-
- export declare type RelativeMeasure = `${"-" | ""}${number}${"em" | "ex"}`;
-
- export declare const RelativeVerticalPosition: {
- readonly CENTER: "center";
- readonly INSIDE: "inside";
- readonly BOTTOM: "bottom";
- readonly OUTSIDE: "outside";
- readonly INLINE: "inline";
- readonly TOP: "top";
- };
-
- declare type RgbColorOptions = {
- readonly type: "rgb";
- readonly value: string;
- };
-
- export declare class Run extends XmlComponent {
- protected readonly properties: RunProperties;
- constructor(options: IRunOptions);
- }
-
- export declare class RunProperties extends IgnoreIfEmptyXmlComponent {
- constructor(options?: IRunPropertiesOptions);
- push(item: XmlComponent): void;
- }
-
- export declare class RunPropertiesChange extends XmlComponent {
- constructor(options: IRunPropertiesChangeOptions);
- }
-
- export declare class RunPropertiesDefaults extends XmlComponent {
- constructor(options?: IRunStylePropertiesOptions);
- }
-
- declare const SchemeColor: {
- readonly BG1: "bg1";
- readonly TX1: "tx1";
- readonly BG2: "bg2";
- readonly TX2: "tx2";
- readonly ACCENT1: "accent1";
- readonly ACCENT2: "accent2";
- readonly ACCENT3: "accent3";
- readonly ACCENT4: "accent4";
- readonly ACCENT5: "accent5";
- readonly ACCENT6: "accent6";
- readonly HLINK: "hlink";
- readonly FOLHLINK: "folHlink";
- readonly DK1: "dk1";
- readonly LT1: "lt1";
- readonly DK2: "dk2";
- readonly LT2: "lt2";
- readonly PHCLR: "phClr";
- };
-
- declare type SchemeColorOptions = {
- readonly type: "scheme";
- readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
- };
-
- export declare const sectionMarginDefaults: {
- TOP: number;
- RIGHT: number;
- BOTTOM: number;
- LEFT: number;
- HEADER: number;
- FOOTER: number;
- GUTTER: number;
- };
-
- export declare const sectionPageSizeDefaults: {
- WIDTH: number;
- HEIGHT: number;
- ORIENTATION: "portrait";
- };
-
- export declare class SectionProperties extends XmlComponent {
- constructor({ page: { size: { width, height, orientation, }, margin: { top, right, bottom, left, header, footer, gutter, }, pageNumbers, borders, textDirection, }, grid: { linePitch, charSpace, type: gridType }, headerWrapperGroup, footerWrapperGroup, lineNumbers, titlePage, verticalAlign, column, type, revision, }?: ISectionPropertiesOptions);
- private addHeaderFooterGroup;
- }
-
- export declare class SectionPropertiesChange extends XmlComponent {
- constructor(options: ISectionPropertiesChangeOptions);
- }
-
- export declare const SectionType: {
- readonly NEXT_PAGE: "nextPage";
- readonly NEXT_COLUMN: "nextColumn";
- readonly CONTINUOUS: "continuous";
- readonly EVEN_PAGE: "evenPage";
- readonly ODD_PAGE: "oddPage";
- };
-
- export declare type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
-
- export declare class Separator extends EmptyElement {
- constructor();
- }
-
- export declare class SequentialIdentifier extends Run {
- constructor(identifier: string);
- }
-
- declare class Settings extends XmlComponent {
- constructor(options: ISettingsOptions);
- }
-
- export declare const ShadingType: {
- readonly CLEAR: "clear";
- readonly DIAGONAL_CROSS: "diagCross";
- readonly DIAGONAL_STRIPE: "diagStripe";
- readonly HORIZONTAL_CROSS: "horzCross";
- readonly HORIZONTAL_STRIPE: "horzStripe";
- readonly NIL: "nil";
- readonly PERCENT_5: "pct5";
- readonly PERCENT_10: "pct10";
- readonly PERCENT_12: "pct12";
- readonly PERCENT_15: "pct15";
- readonly PERCENT_20: "pct20";
- readonly PERCENT_25: "pct25";
- readonly PERCENT_30: "pct30";
- readonly PERCENT_35: "pct35";
- readonly PERCENT_37: "pct37";
- readonly PERCENT_40: "pct40";
- readonly PERCENT_45: "pct45";
- readonly PERCENT_50: "pct50";
- readonly PERCENT_55: "pct55";
- readonly PERCENT_60: "pct60";
- readonly PERCENT_62: "pct62";
- readonly PERCENT_65: "pct65";
- readonly PERCENT_70: "pct70";
- readonly PERCENT_75: "pct75";
- readonly PERCENT_80: "pct80";
- readonly PERCENT_85: "pct85";
- readonly PERCENT_87: "pct87";
- readonly PERCENT_90: "pct90";
- readonly PERCENT_95: "pct95";
- readonly REVERSE_DIAGONAL_STRIPE: "reverseDiagStripe";
- readonly SOLID: "solid";
- readonly THIN_DIAGONAL_CROSS: "thinDiagCross";
- readonly THIN_DIAGONAL_STRIPE: "thinDiagStripe";
- readonly THIN_HORIZONTAL_CROSS: "thinHorzCross";
- readonly THIN_REVERSE_DIAGONAL_STRIPE: "thinReverseDiagStripe";
- readonly THIN_VERTICAL_STRIPE: "thinVertStripe";
- readonly VERTICAL_STRIPE: "vertStripe";
- };
-
- export declare const shortHexNumber: (val: string) => string;
-
- export declare const signedHpsMeasureValue: (val: UniversalMeasure | number) => string | number;
-
- export declare const signedTwipsMeasureValue: (val: UniversalMeasure | number) => UniversalMeasure | number;
-
- export declare class SimpleField extends XmlComponent {
- constructor(instruction: string, cachedValue?: string);
- }
-
- export declare class SimpleMailMergeField extends SimpleField {
- constructor(fieldName: string);
- }
-
- export declare class SoftHyphen extends EmptyElement {
- constructor();
- }
-
- declare type SolidFillOptions = RgbColorOptions | SchemeColorOptions;
-
- export declare const SpaceType: {
- readonly DEFAULT: "default";
- readonly PRESERVE: "preserve";
- };
-
- export declare const standardizeData: (data: string | Buffer | Uint8Array | ArrayBuffer) => Buffer | Uint8Array | ArrayBuffer;
-
- export declare class StringContainer extends XmlComponent {
- constructor(name: string, val: string);
- }
-
- export declare class StringEnumValueElement<T extends string> extends XmlComponent {
- constructor(name: string, val: T);
- }
-
- export declare class StringValueElement extends XmlComponent {
- constructor(name: string, val: string);
- }
-
- declare class Style extends XmlComponent {
- constructor(attributes: IStyleAttributes, options: IStyleOptions);
- }
-
- export declare class StyleForCharacter extends Style {
- private readonly runProperties;
- constructor(options: ICharacterStyleOptions);
- }
-
- export declare class StyleForParagraph extends Style {
- private readonly paragraphProperties;
- private readonly runProperties;
- constructor(options: IParagraphStyleOptions);
- }
-
- export declare class StyleLevel {
- readonly styleName: string;
- readonly level: number;
- constructor(styleName: string, level: number);
- }
-
- export declare class Styles extends XmlComponent {
- constructor(options: IStylesOptions);
- }
-
- declare type SvgMediaData = {
- readonly type: "svg";
- readonly fallback: RegularMediaData & CoreMediaData;
- };
-
- declare type SvgMediaOptions = {
- readonly type: "svg";
- readonly data: Buffer | string | Uint8Array | ArrayBuffer;
- readonly fallback: RegularImageOptions;
- };
-
- export declare class SymbolRun extends Run {
- constructor(options: ISymbolRunOptions | string);
- }
-
- export declare class Tab extends EmptyElement {
- constructor();
- }
-
- export declare class Table extends FileChild {
- constructor({ rows, width, columnWidths, columnWidthsRevision, margins, indent, float, layout, style, borders, alignment, visuallyRightToLeft, tableLook, cellSpacing, revision, }: ITableOptions);
- }
-
- export declare const TableAnchorType: {
- readonly MARGIN: "margin";
- readonly PAGE: "page";
- readonly TEXT: "text";
- };
-
- export declare class TableBorders extends XmlComponent {
- static readonly NONE: ITableBordersOptions;
- constructor(options: ITableBordersOptions);
- }
-
- export declare class TableCell extends XmlComponent {
- readonly options: ITableCellOptions;
- constructor(options: ITableCellOptions);
- prepForXml(context: IContext): IXmlableObject | undefined;
- }
-
- export declare class TableCellBorders extends IgnoreIfEmptyXmlComponent {
- constructor(options: ITableCellBorders);
- }
-
- export declare const TableLayoutType: {
- readonly AUTOFIT: "autofit";
- readonly FIXED: "fixed";
- };
-
- export declare class TableOfContents extends FileChild {
- constructor(alias?: string, { contentChildren, cachedEntries, beginDirty, ...properties }?: ITableOfContentsOptions & {
- readonly contentChildren?: readonly (XmlComponent | string)[];
- readonly cachedEntries?: readonly ToCEntry[];
- readonly beginDirty?: boolean;
- });
- private getTabStopsForLevel;
- private buildCachedContentRun;
- private buildCachedContentParagraphChild;
- }
-
- export declare class TableProperties extends IgnoreIfEmptyXmlComponent {
- constructor(options: ITablePropertiesOptions);
- }
-
- export declare class TableRow extends XmlComponent {
- private readonly options;
- constructor(options: ITableRowOptions);
- get CellCount(): number;
- get cells(): readonly TableCell[];
- addCellToIndex(cell: TableCell, index: number): void;
- addCellToColumnIndex(cell: TableCell, columnIndex: number): void;
- rootIndexToColumnIndex(rootIndex: number): number;
- columnIndexToRootIndex(columnIndex: number, allowEndNewCell?: boolean): number;
- }
-
- export declare class TableRowProperties extends IgnoreIfEmptyXmlComponent {
- constructor(options: ITableRowPropertiesOptions);
- }
-
- export declare class TableRowPropertiesChange extends XmlComponent {
- constructor(options: ITableRowPropertiesChangeOptions);
- }
-
- export declare type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
-
- export declare type TabStopDefinition = {
- readonly type: (typeof TabStopType)[keyof typeof TabStopType];
- readonly position: number | (typeof TabStopPosition)[keyof typeof TabStopPosition];
- readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
- };
-
- export declare const TabStopPosition: {
- readonly MAX: 9026;
- };
-
- export declare const TabStopType: {
- readonly LEFT: "left";
- readonly RIGHT: "right";
- readonly CENTER: "center";
- readonly BAR: "bar";
- readonly CLEAR: "clear";
- readonly DECIMAL: "decimal";
- readonly END: "end";
- readonly NUM: "num";
- readonly START: "start";
- };
-
- declare const TargetModeType: {
- readonly EXTERNAL: "External";
- };
-
- export declare class TDirection extends XmlComponent {
- constructor(value: (typeof TextDirection)[keyof typeof TextDirection]);
- }
-
- export declare class Textbox extends FileChild {
- constructor({ style, children, ...rest }: ITextboxOptions);
- }
-
- export declare const TextDirection: {
- readonly BOTTOM_TO_TOP_LEFT_TO_RIGHT: "btLr";
- readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
- readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
- };
-
- export declare const TextEffect: {
- readonly BLINK_BACKGROUND: "blinkBackground";
- readonly LIGHTS: "lights";
- readonly ANTS_BLACK: "antsBlack";
- readonly ANTS_RED: "antsRed";
- readonly SHIMMER: "shimmer";
- readonly SPARKLE: "sparkle";
- readonly NONE: "none";
- };
-
- export declare class TextRun extends Run {
- constructor(options: IRunOptions | string);
- }
-
- export declare const TextWrappingSide: {
- readonly BOTH_SIDES: "bothSides";
- readonly LEFT: "left";
- readonly RIGHT: "right";
- readonly LARGEST: "largest";
- };
-
- export declare const TextWrappingType: {
- readonly NONE: 0;
- readonly SQUARE: 1;
- readonly TIGHT: 2;
- readonly TOP_AND_BOTTOM: 3;
- };
-
- export declare class ThematicBreak extends XmlComponent {
- constructor();
- }
-
- declare type ToCEntry = {
- readonly title: string;
- readonly level: number;
- readonly page?: number;
- readonly href?: string;
- };
-
- export declare const twipsMeasureValue: (val: PositiveUniversalMeasure | number) => PositiveUniversalMeasure | number;
-
- export declare const uCharHexNumber: (val: string) => string;
-
- export declare const UnderlineType: {
- readonly SINGLE: "single";
- readonly WORDS: "words";
- readonly DOUBLE: "double";
- readonly THICK: "thick";
- readonly DOTTED: "dotted";
- readonly DOTTEDHEAVY: "dottedHeavy";
- readonly DASH: "dash";
- readonly DASHEDHEAVY: "dashedHeavy";
- readonly DASHLONG: "dashLong";
- readonly DASHLONGHEAVY: "dashLongHeavy";
- readonly DOTDASH: "dotDash";
- readonly DASHDOTHEAVY: "dashDotHeavy";
- readonly DOTDOTDASH: "dotDotDash";
- readonly DASHDOTDOTHEAVY: "dashDotDotHeavy";
- readonly WAVE: "wave";
- readonly WAVYHEAVY: "wavyHeavy";
- readonly WAVYDOUBLE: "wavyDouble";
- readonly NONE: "none";
- };
-
- export declare const uniqueId: () => string;
-
- export declare type UniqueNumericIdCreator = () => number;
-
- export declare const uniqueNumericIdCreator: (initial?: number) => UniqueNumericIdCreator;
-
- export declare const uniqueUuid: () => string;
-
- export declare type UniversalMeasure = `${"-" | ""}${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi"}`;
-
- export declare const universalMeasureValue: (val: UniversalMeasure) => UniversalMeasure;
-
- export declare const unsignedDecimalNumber: (val: number) => number;
-
- export declare const VerticalAlign: {
- readonly BOTH: "both";
- readonly TOP: "top";
- readonly CENTER: "center";
- readonly BOTTOM: "bottom";
- };
-
- export declare const VerticalAlignSection: {
- readonly BOTH: "both";
- readonly TOP: "top";
- readonly CENTER: "center";
- readonly BOTTOM: "bottom";
- };
-
- export declare const VerticalAlignTable: {
- readonly TOP: "top";
- readonly CENTER: "center";
- readonly BOTTOM: "bottom";
- };
-
- export declare enum VerticalAnchor {
- CENTER = "ctr",
- TOP = "t",
- BOTTOM = "b"
- }
-
- export declare class VerticalMerge extends XmlComponent {
- constructor(value: (typeof VerticalMergeType)[keyof typeof VerticalMergeType]);
- }
-
- export declare const VerticalMergeRevisionType: {
- readonly CONTINUE: "cont";
- readonly RESTART: "rest";
- };
-
- export declare const VerticalMergeType: {
- readonly CONTINUE: "continue";
- readonly RESTART: "restart";
- };
-
- export declare const VerticalPositionAlign: {
- readonly BOTTOM: "bottom";
- readonly CENTER: "center";
- readonly INSIDE: "inside";
- readonly OUTSIDE: "outside";
- readonly TOP: "top";
- };
-
- export declare const VerticalPositionRelativeFrom: {
- readonly BOTTOM_MARGIN: "bottomMargin";
- readonly INSIDE_MARGIN: "insideMargin";
- readonly LINE: "line";
- readonly MARGIN: "margin";
- readonly OUTSIDE_MARGIN: "outsideMargin";
- readonly PAGE: "page";
- readonly PARAGRAPH: "paragraph";
- readonly TOP_MARGIN: "topMargin";
- };
-
- declare type VmlShapeStyle = {
- readonly flip?: "x" | "y" | "xy" | "yx";
- readonly height?: LengthUnit;
- readonly left?: LengthUnit;
- readonly marginBottom?: LengthUnit;
- readonly marginLeft?: LengthUnit;
- readonly marginRight?: LengthUnit;
- readonly marginTop?: LengthUnit;
- readonly positionHorizontal?: "absolute" | "left" | "center" | "right" | "inside" | "outside";
- readonly positionHorizontalRelative?: "margin" | "page" | "text" | "char";
- readonly positionVertical?: "absolute" | "left" | "center" | "right" | "inside" | "outside";
- readonly positionVerticalRelative?: "margin" | "page" | "text" | "char";
- readonly wrapDistanceBottom?: number;
- readonly wrapDistanceLeft?: number;
- readonly wrapDistanceRight?: number;
- readonly wrapDistanceTop?: number;
- readonly wrapEdited?: boolean;
- readonly wrapStyle?: "square" | "none";
- readonly position?: "static" | "absolute" | "relative";
- readonly rotation?: number;
- readonly top?: LengthUnit;
- readonly visibility?: "hidden" | "inherit";
- readonly width: LengthUnit;
- readonly zIndex?: "auto" | number;
- };
-
- export declare const WidthType: {
- readonly AUTO: "auto";
- readonly DXA: "dxa";
- readonly NIL: "nil";
- readonly PERCENTAGE: "pct";
- };
-
- export declare const WORKAROUND2 = "";
-
- export declare const WORKAROUND3 = "";
-
- export declare const WORKAROUND4 = "";
-
- export declare type WpgCommonMediaData = {
- readonly outline?: OutlineOptions;
- readonly solidFill?: SolidFillOptions;
- };
-
- export declare class WpgGroupRun extends Run {
- private readonly wpgGroupData;
- private readonly mediaDatas;
- constructor(options: IWpgGroupOptions);
- prepForXml(context: IContext): IXmlableObject | undefined;
- }
-
- export declare type WpgMediaData = {
- readonly type: "wpg";
- readonly transformation: IMediaDataTransformation;
- readonly children: readonly IGroupChildMediaData[];
- };
-
- export declare type WpsMediaData = {
- readonly type: "wps";
- readonly transformation: IMediaDataTransformation;
- readonly data: WpsShapeCoreOptions;
- };
-
- declare type WpsShapeCoreOptions = {
- readonly children: readonly Paragraph[];
- readonly nonVisualProperties?: INonVisualShapePropertiesOptions;
- readonly bodyProperties?: IBodyPropertiesOptions;
- };
-
- export declare class WpsShapeRun extends Run {
- private readonly wpsShapeData;
- constructor(options: IWpsShapeOptions);
- }
-
- export declare abstract class XmlAttributeComponent<T extends Record<string, any>> extends BaseXmlComponent {
- private readonly root;
- protected readonly xmlKeys?: AttributeMap<T>;
- constructor(root: T);
- prepForXml(_: IContext): IXmlableObject;
- }
-
- export declare abstract class XmlComponent extends BaseXmlComponent {
- protected root: (BaseXmlComponent | string | any)[];
- constructor(rootKey: string);
- prepForXml(context: IContext): IXmlableObject | undefined;
- addChildElement(child: XmlComponent | string): XmlComponent;
- }
-
- export declare class YearLong extends EmptyElement {
- constructor();
- }
-
- export declare class YearShort extends EmptyElement {
- constructor();
- }
-
- export { }
|