电速宝智配引擎
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

index.d.cts 105KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189
  1. import { default as default_2 } from 'jszip';
  2. import { Element as Element_2 } from 'xml-js';
  3. import { Stream } from 'stream';
  4. export declare class AbstractNumbering extends XmlComponent {
  5. readonly id: number;
  6. constructor(id: number, levelOptions: readonly ILevelsOptions[]);
  7. }
  8. export declare const abstractNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
  9. export declare const AlignmentType: {
  10. readonly START: "start";
  11. readonly CENTER: "center";
  12. readonly END: "end";
  13. readonly BOTH: "both";
  14. readonly MEDIUM_KASHIDA: "mediumKashida";
  15. readonly DISTRIBUTE: "distribute";
  16. readonly NUM_TAB: "numTab";
  17. readonly HIGH_KASHIDA: "highKashida";
  18. readonly LOW_KASHIDA: "lowKashida";
  19. readonly THAI_DISTRIBUTE: "thaiDistribute";
  20. readonly LEFT: "left";
  21. readonly RIGHT: "right";
  22. readonly JUSTIFIED: "both";
  23. };
  24. export declare class AnnotationReference extends EmptyElement {
  25. constructor();
  26. }
  27. declare class AppProperties extends XmlComponent {
  28. constructor();
  29. }
  30. export declare type AttributeData = Record<string, boolean | number | string>;
  31. export declare type AttributeMap<T> = Record<keyof T, string>;
  32. export declare type AttributePayload<T> = {
  33. readonly [P in keyof T]: {
  34. readonly key: string;
  35. readonly value: T[P];
  36. };
  37. };
  38. export declare class Attributes extends XmlAttributeComponent<{
  39. readonly val?: string | number | boolean;
  40. readonly color?: string;
  41. readonly fill?: string;
  42. readonly space?: string;
  43. readonly sz?: string;
  44. readonly type?: string;
  45. readonly rsidR?: string;
  46. readonly rsidRPr?: string;
  47. readonly rsidSect?: string;
  48. readonly w?: string;
  49. readonly h?: string;
  50. readonly top?: string;
  51. readonly right?: string;
  52. readonly bottom?: string;
  53. readonly left?: string;
  54. readonly header?: string;
  55. readonly footer?: string;
  56. readonly gutter?: string;
  57. readonly linePitch?: string;
  58. readonly pos?: string | number;
  59. }> {
  60. protected readonly xmlKeys: {
  61. val: string;
  62. color: string;
  63. fill: string;
  64. space: string;
  65. sz: string;
  66. type: string;
  67. rsidR: string;
  68. rsidRPr: string;
  69. rsidSect: string;
  70. w: string;
  71. h: string;
  72. top: string;
  73. right: string;
  74. bottom: string;
  75. left: string;
  76. header: string;
  77. footer: string;
  78. gutter: string;
  79. linePitch: string;
  80. pos: string;
  81. };
  82. }
  83. export declare abstract class BaseXmlComponent {
  84. protected readonly rootKey: string;
  85. constructor(rootKey: string);
  86. abstract prepForXml(context: IContext): IXmlableObject | undefined;
  87. }
  88. declare class Body_2 extends XmlComponent {
  89. private readonly sections;
  90. constructor();
  91. addSection(options: ISectionPropertiesOptions): void;
  92. prepForXml(context: IContext): IXmlableObject | undefined;
  93. push(component: XmlComponent): void;
  94. private createSectionParagraph;
  95. }
  96. export { Body_2 as Body }
  97. export declare class Bookmark {
  98. private readonly bookmarkUniqueNumericId;
  99. readonly start: BookmarkStart;
  100. readonly children: readonly ParagraphChild[];
  101. readonly end: BookmarkEnd;
  102. constructor(options: IBookmarkOptions);
  103. }
  104. export declare class BookmarkEnd extends XmlComponent {
  105. constructor(linkId: number);
  106. }
  107. export declare class BookmarkStart extends XmlComponent {
  108. constructor(id: string, linkId: number);
  109. }
  110. export declare const bookmarkUniqueNumericIdGen: () => UniqueNumericIdCreator;
  111. export declare class Border extends IgnoreIfEmptyXmlComponent {
  112. constructor(options: IBordersOptions);
  113. }
  114. export declare const BorderStyle: {
  115. readonly SINGLE: "single";
  116. readonly DASH_DOT_STROKED: "dashDotStroked";
  117. readonly DASHED: "dashed";
  118. readonly DASH_SMALL_GAP: "dashSmallGap";
  119. readonly DOT_DASH: "dotDash";
  120. readonly DOT_DOT_DASH: "dotDotDash";
  121. readonly DOTTED: "dotted";
  122. readonly DOUBLE: "double";
  123. readonly DOUBLE_WAVE: "doubleWave";
  124. readonly INSET: "inset";
  125. readonly NIL: "nil";
  126. readonly NONE: "none";
  127. readonly OUTSET: "outset";
  128. readonly THICK: "thick";
  129. readonly THICK_THIN_LARGE_GAP: "thickThinLargeGap";
  130. readonly THICK_THIN_MEDIUM_GAP: "thickThinMediumGap";
  131. readonly THICK_THIN_SMALL_GAP: "thickThinSmallGap";
  132. readonly THIN_THICK_LARGE_GAP: "thinThickLargeGap";
  133. readonly THIN_THICK_MEDIUM_GAP: "thinThickMediumGap";
  134. readonly THIN_THICK_SMALL_GAP: "thinThickSmallGap";
  135. readonly THIN_THICK_THIN_LARGE_GAP: "thinThickThinLargeGap";
  136. readonly THIN_THICK_THIN_MEDIUM_GAP: "thinThickThinMediumGap";
  137. readonly THIN_THICK_THIN_SMALL_GAP: "thinThickThinSmallGap";
  138. readonly THREE_D_EMBOSS: "threeDEmboss";
  139. readonly THREE_D_ENGRAVE: "threeDEngrave";
  140. readonly TRIPLE: "triple";
  141. readonly WAVE: "wave";
  142. };
  143. export declare class BuilderElement<T extends AttributeData = {}> extends XmlComponent {
  144. constructor({ name, attributes, children, }: {
  145. readonly name: string;
  146. readonly attributes?: AttributePayload<T>;
  147. readonly children?: readonly XmlComponent[];
  148. });
  149. }
  150. export declare class CarriageReturn extends EmptyElement {
  151. constructor();
  152. }
  153. export declare class CellMerge extends XmlComponent {
  154. constructor(options: ICellMergeAttributes);
  155. }
  156. export declare class CellMergeAttributes extends XmlAttributeComponent<ICellMergeAttributes> {
  157. protected readonly xmlKeys: {
  158. id: string;
  159. author: string;
  160. date: string;
  161. verticalMerge: string;
  162. verticalMergeOriginal: string;
  163. };
  164. }
  165. declare const CellSpacingType: {
  166. readonly DXA: "dxa";
  167. readonly NIL: "nil";
  168. };
  169. export declare const CharacterSet: {
  170. readonly ANSI: "00";
  171. readonly DEFAULT: "01";
  172. readonly SYMBOL: "02";
  173. readonly MAC: "4D";
  174. readonly JIS: "80";
  175. readonly HANGUL: "81";
  176. readonly JOHAB: "82";
  177. readonly GB_2312: "86";
  178. readonly CHINESEBIG5: "88";
  179. readonly GREEK: "A1";
  180. readonly TURKISH: "A2";
  181. readonly VIETNAMESE: "A3";
  182. readonly HEBREW: "B1";
  183. readonly ARABIC: "B2";
  184. readonly BALTIC: "BA";
  185. readonly RUSSIAN: "CC";
  186. readonly THAI: "DE";
  187. readonly EASTEUROPE: "EE";
  188. readonly OEM: "FF";
  189. };
  190. export declare class CheckBox extends XmlComponent {
  191. private readonly DEFAULT_UNCHECKED_SYMBOL;
  192. private readonly DEFAULT_CHECKED_SYMBOL;
  193. private readonly DEFAULT_FONT;
  194. constructor(options?: ICheckboxSymbolOptions);
  195. }
  196. export declare class CheckBoxSymbolElement extends XmlComponent {
  197. constructor(name: string, val: string, font?: string);
  198. }
  199. export declare class CheckBoxUtil extends XmlComponent {
  200. private readonly DEFAULT_UNCHECKED_SYMBOL;
  201. private readonly DEFAULT_CHECKED_SYMBOL;
  202. private readonly DEFAULT_FONT;
  203. constructor(options?: ICheckboxSymbolOptions);
  204. }
  205. export declare class Column extends XmlComponent {
  206. constructor(options: IColumnAttributes);
  207. }
  208. export declare class ColumnBreak extends Run {
  209. constructor();
  210. }
  211. declare class Comment_2 extends XmlComponent {
  212. constructor({ id, initials, author, date, children }: ICommentOptions);
  213. }
  214. export { Comment_2 as Comment }
  215. export declare class CommentRangeEnd extends XmlComponent {
  216. constructor(id: number);
  217. }
  218. export declare class CommentRangeStart extends XmlComponent {
  219. constructor(id: number);
  220. }
  221. export declare class CommentReference extends XmlComponent {
  222. constructor(id: number);
  223. }
  224. export declare class Comments extends XmlComponent {
  225. private readonly relationships;
  226. constructor({ children }: ICommentsOptions);
  227. get Relationships(): Relationships;
  228. }
  229. declare const CompoundLine: {
  230. readonly SINGLE: "sng";
  231. readonly DOUBLE: "dbl";
  232. readonly THICK_THIN: "thickThin";
  233. readonly THIN_THICK: "thinThick";
  234. readonly TRI: "tri";
  235. };
  236. export declare class ConcreteHyperlink extends XmlComponent {
  237. readonly linkId: string;
  238. constructor(children: readonly ParagraphChild[], relationshipId: string, anchor?: string);
  239. }
  240. export declare class ConcreteNumbering extends XmlComponent {
  241. readonly numId: number;
  242. readonly reference: string;
  243. readonly instance: number;
  244. constructor(options: IConcreteNumberingOptions);
  245. }
  246. export declare const concreteNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
  247. declare class ContentTypes extends XmlComponent {
  248. constructor();
  249. addFooter(index: number): void;
  250. addHeader(index: number): void;
  251. }
  252. export declare class ContinuationSeparator extends EmptyElement {
  253. constructor();
  254. }
  255. export declare const convertInchesToTwip: (inches: number) => number;
  256. export declare const convertMillimetersToTwip: (millimeters: number) => number;
  257. export declare const convertToXmlComponent: (element: Element_2) => ImportedXmlComponent | string | undefined;
  258. declare type CoreGroupOptions = {
  259. readonly children: readonly IGroupChildMediaData[];
  260. readonly transformation: IMediaTransformation;
  261. readonly floating?: IFloating;
  262. readonly altText?: DocPropertiesOptions;
  263. };
  264. declare type CoreImageOptions = {
  265. readonly transformation: IMediaTransformation;
  266. readonly floating?: IFloating;
  267. readonly altText?: DocPropertiesOptions;
  268. readonly outline?: OutlineOptions;
  269. readonly solidFill?: SolidFillOptions;
  270. };
  271. declare type CoreMediaData = {
  272. readonly fileName: string;
  273. readonly transformation: IMediaDataTransformation;
  274. readonly data: Buffer | Uint8Array | ArrayBuffer;
  275. };
  276. declare class CoreProperties extends XmlComponent {
  277. constructor(options: Omit<IPropertiesOptions, "sections">);
  278. }
  279. declare type CoreShapeOptions = {
  280. readonly transformation: IMediaTransformation;
  281. readonly floating?: IFloating;
  282. readonly altText?: DocPropertiesOptions;
  283. readonly outline?: OutlineOptions;
  284. readonly solidFill?: SolidFillOptions;
  285. };
  286. export declare const createAlignment: (type: (typeof AlignmentType)[keyof typeof AlignmentType]) => XmlComponent;
  287. export declare const createBodyProperties: (options?: IBodyPropertiesOptions) => XmlComponent;
  288. export declare const createBorderElement: (elementName: string, { color, size, space, style }: IBorderOptions) => XmlComponent;
  289. export declare const createColumns: ({ space, count, separate, equalWidth, children }: IColumnsAttributes) => XmlComponent;
  290. export declare const createDocumentGrid: ({ type, linePitch, charSpace }: IDocGridAttributesProperties) => XmlComponent;
  291. export declare const createDotEmphasisMark: () => XmlComponent;
  292. export declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => XmlComponent;
  293. export declare const createFrameProperties: (options: IFrameOptions) => XmlComponent;
  294. export declare const createHeaderFooterReference: (type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions) => XmlComponent;
  295. export declare const createHorizontalPosition: ({ relative, align, offset }: IHorizontalPositionOptions) => XmlComponent;
  296. export declare const createIndent: ({ start, end, left, right, hanging, firstLine }: IIndentAttributesProperties) => XmlComponent;
  297. export declare const createLineNumberType: ({ countBy, start, restart, distance }: ILineNumberAttributes) => XmlComponent;
  298. export declare const createMathAccentCharacter: ({ accent }: MathAccentCharacterOptions) => XmlComponent;
  299. export declare const createMathBase: ({ children }: MathBaseOptions) => XmlComponent;
  300. export declare const createMathLimitLocation: ({ value }: MathLimitLocationOptions) => XmlComponent;
  301. export declare const createMathNAryProperties: ({ accent, hasSuperScript, hasSubScript, limitLocationVal, }: MathNAryPropertiesOptions) => XmlComponent;
  302. export declare const createMathPreSubSuperScriptProperties: () => XmlComponent;
  303. export declare const createMathSubScriptElement: ({ children }: MathSubScriptElementOptions) => XmlComponent;
  304. export declare const createMathSubScriptProperties: () => XmlComponent;
  305. export declare const createMathSubSuperScriptProperties: () => XmlComponent;
  306. export declare const createMathSuperScriptElement: ({ children }: MathSuperScriptElementOptions) => XmlComponent;
  307. export declare const createMathSuperScriptProperties: () => XmlComponent;
  308. export declare const createOutlineLevel: (level: number) => XmlComponent;
  309. 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;
  310. export declare const createPageNumberType: ({ start, formatType, separator }: IPageNumberTypeAttributes) => XmlComponent;
  311. export declare const createPageSize: ({ width, height, orientation, code }: IPageSizeAttributes) => XmlComponent;
  312. export declare const createParagraphStyle: (styleId: string) => XmlComponent;
  313. export declare const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties, hint?: string) => XmlComponent;
  314. export declare const createSectionType: (value: (typeof SectionType)[keyof typeof SectionType]) => XmlComponent;
  315. export declare const createShading: ({ fill, color, type }: IShadingAttributesProperties) => XmlComponent;
  316. export declare const createSimplePos: () => XmlComponent;
  317. export declare const createSpacing: ({ after, before, line, lineRule, beforeAutoSpacing, afterAutoSpacing }: ISpacingProperties) => XmlComponent;
  318. export declare const createStringElement: (name: string, value: string) => XmlComponent;
  319. export declare const createTableFloatProperties: ({ horizontalAnchor, verticalAnchor, absoluteHorizontalPosition, relativeHorizontalPosition, absoluteVerticalPosition, relativeVerticalPosition, bottomFromText, topFromText, leftFromText, rightFromText, overlap, }: ITableFloatOptions) => XmlComponent;
  320. export declare const createTableLayout: (type: (typeof TableLayoutType)[keyof typeof TableLayoutType]) => XmlComponent;
  321. export declare const createTableLook: ({ firstRow, lastRow, firstColumn, lastColumn, noHBand, noVBand }: ITableLookOptions) => XmlComponent;
  322. export declare const createTableRowHeight: (value: number | PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]) => XmlComponent;
  323. export declare const createTableWidthElement: (name: string, { type, size }: ITableWidthProperties) => XmlComponent;
  324. export declare const createTabStop: (tabDefinitions: readonly TabStopDefinition[]) => XmlComponent;
  325. export declare const createTabStopItem: ({ type, position, leader }: TabStopDefinition) => XmlComponent;
  326. export declare const createTransformation: (options: IMediaTransformation) => IMediaDataTransformation;
  327. export declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string) => XmlComponent;
  328. export declare const createVerticalAlign: (value: (typeof VerticalAlign)[keyof typeof VerticalAlign]) => XmlComponent;
  329. export declare const createVerticalPosition: ({ relative, align, offset }: IVerticalPositionOptions) => XmlComponent;
  330. export declare const createWrapNone: () => XmlComponent;
  331. export declare const createWrapSquare: (textWrapping: ITextWrapping, margins?: IMargins) => XmlComponent;
  332. export declare const createWrapTight: (margins?: IMargins) => XmlComponent;
  333. export declare const createWrapTopAndBottom: (margins?: IMargins) => XmlComponent;
  334. declare class CustomProperties extends XmlComponent {
  335. private nextId;
  336. private readonly properties;
  337. constructor(properties: readonly ICustomPropertyOptions[]);
  338. prepForXml(context: IContext): IXmlableObject | undefined;
  339. addCustomProperty(property: ICustomPropertyOptions): void;
  340. }
  341. export declare const dateTimeValue: (val: Date) => string;
  342. export declare class DayLong extends EmptyElement {
  343. constructor();
  344. }
  345. export declare class DayShort extends EmptyElement {
  346. constructor();
  347. }
  348. export declare const decimalNumber: (val: number) => number;
  349. export declare class DeletedTableCell extends XmlComponent {
  350. constructor(options: IChangedAttributesProperties);
  351. }
  352. export declare class DeletedTableRow extends XmlComponent {
  353. constructor(options: IChangedAttributesProperties);
  354. }
  355. export declare class DeletedTextRun extends XmlComponent {
  356. protected readonly deletedTextRunWrapper: DeletedTextRunWrapper;
  357. constructor(options: IDeletedRunOptions);
  358. }
  359. declare class DeletedTextRunWrapper extends XmlComponent {
  360. constructor(options: IRunOptions);
  361. }
  362. declare type DocPropertiesOptions = {
  363. readonly name: string;
  364. readonly description?: string;
  365. readonly title?: string;
  366. readonly id?: string;
  367. };
  368. export declare const docPropertiesUniqueNumericIdGen: () => UniqueNumericIdCreator;
  369. declare class Document_2 extends XmlComponent {
  370. private readonly body;
  371. constructor(options: IDocumentOptions);
  372. add(item: Paragraph | Table | TableOfContents | ConcreteHyperlink): Document_2;
  373. get Body(): Body_2;
  374. }
  375. export declare type DocumentAttributeNamespace = keyof typeof DocumentAttributeNamespaces;
  376. export declare const DocumentAttributeNamespaces: {
  377. wpc: string;
  378. mc: string;
  379. o: string;
  380. r: string;
  381. m: string;
  382. v: string;
  383. wp14: string;
  384. wp: string;
  385. w10: string;
  386. w: string;
  387. w14: string;
  388. w15: string;
  389. wpg: string;
  390. wpi: string;
  391. wne: string;
  392. wps: string;
  393. cp: string;
  394. dc: string;
  395. dcterms: string;
  396. dcmitype: string;
  397. xsi: string;
  398. cx: string;
  399. cx1: string;
  400. cx2: string;
  401. cx3: string;
  402. cx4: string;
  403. cx5: string;
  404. cx6: string;
  405. cx7: string;
  406. cx8: string;
  407. aink: string;
  408. am3d: string;
  409. w16cex: string;
  410. w16cid: string;
  411. w16: string;
  412. w16sdtdh: string;
  413. w16se: string;
  414. };
  415. export declare class DocumentAttributes extends XmlAttributeComponent<IDocumentAttributesProperties> {
  416. protected readonly xmlKeys: AttributeMap<IDocumentAttributesProperties>;
  417. constructor(ns: readonly DocumentAttributeNamespace[], Ignorable?: string);
  418. }
  419. export declare class DocumentBackground extends XmlComponent {
  420. constructor(options: IDocumentBackgroundOptions);
  421. }
  422. export declare class DocumentBackgroundAttributes extends XmlAttributeComponent<{
  423. readonly color?: string;
  424. readonly themeColor?: string;
  425. readonly themeShade?: string;
  426. readonly themeTint?: string;
  427. }> {
  428. protected readonly xmlKeys: {
  429. color: string;
  430. themeColor: string;
  431. themeShade: string;
  432. themeTint: string;
  433. };
  434. }
  435. export declare class DocumentDefaults extends XmlComponent {
  436. private readonly runPropertiesDefaults;
  437. private readonly paragraphPropertiesDefaults;
  438. constructor(options: IDocumentDefaultsOptions);
  439. }
  440. export declare const DocumentGridType: {
  441. readonly DEFAULT: "default";
  442. readonly LINES: "lines";
  443. readonly LINES_AND_CHARS: "linesAndChars";
  444. readonly SNAP_TO_CHARS: "snapToChars";
  445. };
  446. declare class DocumentWrapper implements IViewWrapper {
  447. private readonly document;
  448. private readonly relationships;
  449. constructor(options: IDocumentOptions);
  450. get View(): Document_2;
  451. get Relationships(): Relationships;
  452. }
  453. export declare class Drawing extends XmlComponent {
  454. constructor(imageData: IExtendedMediaData, drawingOptions?: IDrawingOptions);
  455. }
  456. export declare const DropCapType: {
  457. readonly NONE: "none";
  458. readonly DROP: "drop";
  459. readonly MARGIN: "margin";
  460. };
  461. export declare const eighthPointMeasureValue: (val: number) => number;
  462. export declare const EmphasisMarkType: {
  463. readonly DOT: "dot";
  464. };
  465. export declare const EMPTY_OBJECT: {};
  466. export declare class EmptyElement extends XmlComponent {
  467. }
  468. export declare const encodeUtf8: (str: string) => Uint8Array;
  469. export declare class EndnoteIdReference extends XmlComponent {
  470. constructor(id: number);
  471. }
  472. export declare class EndnoteReference extends EmptyElement {
  473. constructor();
  474. }
  475. export declare class EndnoteReferenceRun extends Run {
  476. constructor(id: number);
  477. }
  478. export declare class EndnoteReferenceRunAttributes extends XmlAttributeComponent<{
  479. readonly id: number;
  480. }> {
  481. protected readonly xmlKeys: {
  482. id: string;
  483. };
  484. }
  485. export declare class Endnotes extends XmlComponent {
  486. constructor();
  487. createEndnote(id: number, paragraph: readonly Paragraph[]): void;
  488. }
  489. declare class EndnotesWrapper implements IViewWrapper {
  490. private readonly endnotes;
  491. private readonly relationships;
  492. constructor();
  493. get View(): Endnotes;
  494. get Relationships(): Relationships;
  495. }
  496. export declare class ExternalHyperlink extends XmlComponent {
  497. readonly options: IExternalHyperlinkOptions;
  498. constructor(options: IExternalHyperlinkOptions);
  499. }
  500. declare class FieldInstruction extends XmlComponent {
  501. private readonly properties;
  502. constructor(properties?: ITableOfContentsOptions);
  503. }
  504. declare class File_2 {
  505. private currentRelationshipId;
  506. private readonly documentWrapper;
  507. private readonly headers;
  508. private readonly footers;
  509. private readonly coreProperties;
  510. private readonly numbering;
  511. private readonly media;
  512. private readonly fileRelationships;
  513. private readonly footnotesWrapper;
  514. private readonly endnotesWrapper;
  515. private readonly settings;
  516. private readonly contentTypes;
  517. private readonly customProperties;
  518. private readonly appProperties;
  519. private readonly styles;
  520. private readonly comments;
  521. private readonly fontWrapper;
  522. constructor(options: IPropertiesOptions);
  523. private addSection;
  524. private createHeader;
  525. private createFooter;
  526. private addHeaderToDocument;
  527. private addFooterToDocument;
  528. private addDefaultRelationships;
  529. get Document(): DocumentWrapper;
  530. get Styles(): Styles;
  531. get CoreProperties(): CoreProperties;
  532. get Numbering(): Numbering;
  533. get Media(): Media;
  534. get FileRelationships(): Relationships;
  535. get Headers(): readonly HeaderWrapper[];
  536. get Footers(): readonly FooterWrapper[];
  537. get ContentTypes(): ContentTypes;
  538. get CustomProperties(): CustomProperties;
  539. get AppProperties(): AppProperties;
  540. get FootNotes(): FootnotesWrapper;
  541. get Endnotes(): EndnotesWrapper;
  542. get Settings(): Settings;
  543. get Comments(): Comments;
  544. get FontTable(): FontWrapper;
  545. }
  546. export { File_2 as Document }
  547. export { File_2 as File }
  548. export declare class FileChild extends XmlComponent {
  549. readonly fileChild: symbol;
  550. }
  551. declare type FilePatch = {
  552. readonly type: typeof PatchType.DOCUMENT;
  553. readonly children: readonly FileChild[];
  554. };
  555. declare type FontOptions = {
  556. readonly name: string;
  557. readonly data: Buffer;
  558. readonly characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
  559. };
  560. declare type FontOptionsWithKey = FontOptions & {
  561. readonly fontKey: string;
  562. };
  563. declare class FontWrapper implements IViewWrapper {
  564. readonly options: readonly FontOptions[];
  565. private readonly fontTable;
  566. private readonly relationships;
  567. readonly fontOptionsWithKey: readonly FontOptionsWithKey[];
  568. constructor(options: readonly FontOptions[]);
  569. get View(): XmlComponent;
  570. get Relationships(): Relationships;
  571. }
  572. export declare class Footer {
  573. readonly options: IHeaderOptions;
  574. constructor(options?: IHeaderOptions);
  575. }
  576. declare class Footer_2 extends InitializableXmlComponent {
  577. private readonly refId;
  578. constructor(referenceNumber: number, initContent?: XmlComponent);
  579. get ReferenceId(): number;
  580. add(item: Paragraph | Table): void;
  581. }
  582. export declare class FooterWrapper implements IViewWrapper {
  583. private readonly media;
  584. private readonly footer;
  585. private readonly relationships;
  586. constructor(media: Media, referenceId: number, initContent?: XmlComponent);
  587. add(item: Paragraph | Table): void;
  588. addChildElement(childElement: XmlComponent): void;
  589. get View(): Footer_2;
  590. get Relationships(): Relationships;
  591. get Media(): Media;
  592. }
  593. export declare class FootnoteReference extends XmlComponent {
  594. constructor(id: number);
  595. }
  596. export declare class FootnoteReferenceElement extends EmptyElement {
  597. constructor();
  598. }
  599. export declare class FootnoteReferenceRun extends Run {
  600. constructor(id: number);
  601. }
  602. export declare class FootNoteReferenceRunAttributes extends XmlAttributeComponent<{
  603. readonly id: number;
  604. }> {
  605. protected readonly xmlKeys: {
  606. id: string;
  607. };
  608. }
  609. export declare class FootNotes extends XmlComponent {
  610. constructor();
  611. createFootNote(id: number, paragraph: readonly Paragraph[]): void;
  612. }
  613. declare class FootnotesWrapper implements IViewWrapper {
  614. private readonly footnotess;
  615. private readonly relationships;
  616. constructor();
  617. get View(): FootNotes;
  618. get Relationships(): Relationships;
  619. }
  620. export declare const FrameAnchorType: {
  621. readonly MARGIN: "margin";
  622. readonly PAGE: "page";
  623. readonly TEXT: "text";
  624. };
  625. export declare const FrameWrap: {
  626. readonly AROUND: "around";
  627. readonly AUTO: "auto";
  628. readonly NONE: "none";
  629. readonly NOT_BESIDE: "notBeside";
  630. readonly THROUGH: "through";
  631. readonly TIGHT: "tight";
  632. };
  633. export declare class GridSpan extends XmlComponent {
  634. constructor(value: number);
  635. }
  636. export declare const hashedId: (data: Buffer | string | Uint8Array | ArrayBuffer) => string;
  637. export declare class Header {
  638. readonly options: IHeaderOptions;
  639. constructor(options?: IHeaderOptions);
  640. }
  641. declare class Header_2 extends InitializableXmlComponent {
  642. private readonly refId;
  643. constructor(referenceNumber: number, initContent?: XmlComponent);
  644. get ReferenceId(): number;
  645. add(item: Paragraph | Table): void;
  646. }
  647. export declare const HeaderFooterReferenceType: {
  648. readonly DEFAULT: "default";
  649. readonly FIRST: "first";
  650. readonly EVEN: "even";
  651. };
  652. export declare const HeaderFooterType: {
  653. readonly HEADER: "w:headerReference";
  654. readonly FOOTER: "w:footerReference";
  655. };
  656. export declare class HeaderWrapper implements IViewWrapper {
  657. private readonly media;
  658. private readonly header;
  659. private readonly relationships;
  660. constructor(media: Media, referenceId: number, initContent?: XmlComponent);
  661. add(item: Paragraph | Table): HeaderWrapper;
  662. addChildElement(childElement: XmlComponent | string): void;
  663. get View(): Header_2;
  664. get Relationships(): Relationships;
  665. get Media(): Media;
  666. }
  667. export declare const HeadingLevel: {
  668. readonly HEADING_1: "Heading1";
  669. readonly HEADING_2: "Heading2";
  670. readonly HEADING_3: "Heading3";
  671. readonly HEADING_4: "Heading4";
  672. readonly HEADING_5: "Heading5";
  673. readonly HEADING_6: "Heading6";
  674. readonly TITLE: "Title";
  675. };
  676. export declare const HeightRule: {
  677. readonly AUTO: "auto";
  678. readonly ATLEAST: "atLeast";
  679. readonly EXACT: "exact";
  680. };
  681. export declare const hexColorValue: (val: string) => string;
  682. export declare const HighlightColor: {
  683. readonly BLACK: "black";
  684. readonly BLUE: "blue";
  685. readonly CYAN: "cyan";
  686. readonly DARK_BLUE: "darkBlue";
  687. readonly DARK_CYAN: "darkCyan";
  688. readonly DARK_GRAY: "darkGray";
  689. readonly DARK_GREEN: "darkGreen";
  690. readonly DARK_MAGENTA: "darkMagenta";
  691. readonly DARK_RED: "darkRed";
  692. readonly DARK_YELLOW: "darkYellow";
  693. readonly GREEN: "green";
  694. readonly LIGHT_GRAY: "lightGray";
  695. readonly MAGENTA: "magenta";
  696. readonly NONE: "none";
  697. readonly RED: "red";
  698. readonly WHITE: "white";
  699. readonly YELLOW: "yellow";
  700. };
  701. export declare const HorizontalPositionAlign: {
  702. readonly CENTER: "center";
  703. readonly INSIDE: "inside";
  704. readonly LEFT: "left";
  705. readonly OUTSIDE: "outside";
  706. readonly RIGHT: "right";
  707. };
  708. export declare const HorizontalPositionRelativeFrom: {
  709. readonly CHARACTER: "character";
  710. readonly COLUMN: "column";
  711. readonly INSIDE_MARGIN: "insideMargin";
  712. readonly LEFT_MARGIN: "leftMargin";
  713. readonly MARGIN: "margin";
  714. readonly OUTSIDE_MARGIN: "outsideMargin";
  715. readonly PAGE: "page";
  716. readonly RIGHT_MARGIN: "rightMargin";
  717. };
  718. export declare class HpsMeasureElement extends XmlComponent {
  719. constructor(name: string, val: number | PositiveUniversalMeasure);
  720. }
  721. export declare const hpsMeasureValue: (val: PositiveUniversalMeasure | number) => string | number;
  722. export declare const HyperlinkType: {
  723. readonly INTERNAL: "INTERNAL";
  724. readonly EXTERNAL: "EXTERNAL";
  725. };
  726. export declare type IAlignmentFrameOptions = {
  727. readonly type: "alignment";
  728. readonly alignment: {
  729. readonly x: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
  730. readonly y: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
  731. };
  732. } & IBaseFrameOptions;
  733. export declare type IBaseCharacterStyleOptions = {
  734. readonly run?: IRunStylePropertiesOptions;
  735. } & IStyleOptions;
  736. declare type IBaseFrameOptions = {
  737. readonly anchorLock?: boolean;
  738. readonly dropCap?: (typeof DropCapType)[keyof typeof DropCapType];
  739. readonly width: number;
  740. readonly height: number;
  741. readonly wrap?: (typeof FrameWrap)[keyof typeof FrameWrap];
  742. readonly lines?: number;
  743. readonly anchor: {
  744. readonly horizontal: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
  745. readonly vertical: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
  746. };
  747. readonly space?: {
  748. readonly horizontal: number;
  749. readonly vertical: number;
  750. };
  751. readonly rule?: (typeof HeightRule)[keyof typeof HeightRule];
  752. };
  753. export declare type IBaseParagraphStyleOptions = {
  754. readonly paragraph?: IParagraphStylePropertiesOptions;
  755. readonly run?: IRunStylePropertiesOptions;
  756. } & IStyleOptions;
  757. export declare type IBodyPropertiesOptions = {
  758. readonly wrap?: (typeof TextWrappingType)[keyof typeof TextWrappingType];
  759. readonly verticalAnchor?: VerticalAnchor;
  760. readonly margins?: {
  761. readonly top?: number;
  762. readonly bottom?: number;
  763. readonly left?: number;
  764. readonly right?: number;
  765. };
  766. readonly noAutoFit?: boolean;
  767. };
  768. export declare type IBookmarkOptions = {
  769. readonly id: string;
  770. readonly children: readonly ParagraphChild[];
  771. };
  772. export declare type IBorderOptions = {
  773. readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
  774. readonly color?: string;
  775. readonly size?: number;
  776. readonly space?: number;
  777. };
  778. export declare type IBordersOptions = {
  779. readonly top?: IBorderOptions;
  780. readonly bottom?: IBorderOptions;
  781. readonly left?: IBorderOptions;
  782. readonly right?: IBorderOptions;
  783. readonly between?: IBorderOptions;
  784. };
  785. export declare type ICellMergeAttributes = IChangedAttributesProperties & {
  786. readonly verticalMerge?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
  787. readonly verticalMergeOriginal?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
  788. };
  789. declare type IChangedAttributesProperties = {
  790. readonly id: number;
  791. readonly author: string;
  792. readonly date: string;
  793. };
  794. export declare type ICharacterStyleOptions = {
  795. readonly id: string;
  796. } & IBaseCharacterStyleOptions;
  797. export declare type ICheckboxSymbolOptions = {
  798. readonly alias?: string;
  799. readonly checked?: boolean;
  800. readonly checkedState?: ICheckboxSymbolProperties;
  801. readonly uncheckedState?: ICheckboxSymbolProperties;
  802. };
  803. export declare type ICheckboxSymbolProperties = {
  804. readonly value?: string;
  805. readonly font?: string;
  806. };
  807. export declare type IColumnAttributes = {
  808. readonly width: number | PositiveUniversalMeasure;
  809. readonly space?: number | PositiveUniversalMeasure;
  810. };
  811. export declare type IColumnsAttributes = {
  812. readonly space?: number | PositiveUniversalMeasure;
  813. readonly count?: number;
  814. readonly separate?: boolean;
  815. readonly equalWidth?: boolean;
  816. readonly children?: readonly Column[];
  817. };
  818. export declare type ICommentOptions = {
  819. readonly id: number;
  820. readonly children: readonly FileChild[];
  821. readonly initials?: string;
  822. readonly author?: string;
  823. readonly date?: Date;
  824. };
  825. export declare type ICommentsOptions = {
  826. readonly children: readonly ICommentOptions[];
  827. };
  828. declare type ICompatibilityOptions = {
  829. readonly version?: number;
  830. readonly useSingleBorderforContiguousCells?: boolean;
  831. readonly wordPerfectJustification?: boolean;
  832. readonly noTabStopForHangingIndent?: boolean;
  833. readonly noLeading?: boolean;
  834. readonly spaceForUnderline?: boolean;
  835. readonly noColumnBalance?: boolean;
  836. readonly balanceSingleByteDoubleByteWidth?: boolean;
  837. readonly noExtraLineSpacing?: boolean;
  838. readonly doNotLeaveBackslashAlone?: boolean;
  839. readonly underlineTrailingSpaces?: boolean;
  840. readonly doNotExpandShiftReturn?: boolean;
  841. readonly spacingInWholePoints?: boolean;
  842. readonly lineWrapLikeWord6?: boolean;
  843. readonly printBodyTextBeforeHeader?: boolean;
  844. readonly printColorsBlack?: boolean;
  845. readonly spaceWidth?: boolean;
  846. readonly showBreaksInFrames?: boolean;
  847. readonly subFontBySize?: boolean;
  848. readonly suppressBottomSpacing?: boolean;
  849. readonly suppressTopSpacing?: boolean;
  850. readonly suppressSpacingAtTopOfPage?: boolean;
  851. readonly suppressTopSpacingWP?: boolean;
  852. readonly suppressSpBfAfterPgBrk?: boolean;
  853. readonly swapBordersFacingPages?: boolean;
  854. readonly convertMailMergeEsc?: boolean;
  855. readonly truncateFontHeightsLikeWP6?: boolean;
  856. readonly macWordSmallCaps?: boolean;
  857. readonly usePrinterMetrics?: boolean;
  858. readonly doNotSuppressParagraphBorders?: boolean;
  859. readonly wrapTrailSpaces?: boolean;
  860. readonly footnoteLayoutLikeWW8?: boolean;
  861. readonly shapeLayoutLikeWW8?: boolean;
  862. readonly alignTablesRowByRow?: boolean;
  863. readonly forgetLastTabAlignment?: boolean;
  864. readonly adjustLineHeightInTable?: boolean;
  865. readonly autoSpaceLikeWord95?: boolean;
  866. readonly noSpaceRaiseLower?: boolean;
  867. readonly doNotUseHTMLParagraphAutoSpacing?: boolean;
  868. readonly layoutRawTableWidth?: boolean;
  869. readonly layoutTableRowsApart?: boolean;
  870. readonly useWord97LineBreakRules?: boolean;
  871. readonly doNotBreakWrappedTables?: boolean;
  872. readonly doNotSnapToGridInCell?: boolean;
  873. readonly selectFieldWithFirstOrLastCharacter?: boolean;
  874. readonly applyBreakingRules?: boolean;
  875. readonly doNotWrapTextWithPunctuation?: boolean;
  876. readonly doNotUseEastAsianBreakRules?: boolean;
  877. readonly useWord2002TableStyleRules?: boolean;
  878. readonly growAutofit?: boolean;
  879. readonly useFELayout?: boolean;
  880. readonly useNormalStyleForList?: boolean;
  881. readonly doNotUseIndentAsNumberingTabStop?: boolean;
  882. readonly useAlternateEastAsianLineBreakRules?: boolean;
  883. readonly allowSpaceOfSameStyleInTable?: boolean;
  884. readonly doNotSuppressIndentation?: boolean;
  885. readonly doNotAutofitConstrainedTables?: boolean;
  886. readonly autofitToFirstFixedWidthCell?: boolean;
  887. readonly underlineTabInNumberingList?: boolean;
  888. readonly displayHangulFixedWidth?: boolean;
  889. readonly splitPgBreakAndParaMark?: boolean;
  890. readonly doNotVerticallyAlignCellWithSp?: boolean;
  891. readonly doNotBreakConstrainedForcedTable?: boolean;
  892. readonly ignoreVerticalAlignmentInTextboxes?: boolean;
  893. readonly useAnsiKerningPairs?: boolean;
  894. readonly cachedColumnBalance?: boolean;
  895. };
  896. export declare type IConcreteNumberingOptions = {
  897. readonly numId: number;
  898. readonly abstractNumId: number;
  899. readonly reference: string;
  900. readonly instance: number;
  901. readonly overrideLevels?: readonly IOverrideLevel[];
  902. };
  903. export declare type IContext = {
  904. readonly file: File_2;
  905. readonly viewWrapper: IViewWrapper;
  906. readonly stack: IXmlableObject[];
  907. };
  908. declare type ICustomPropertyOptions = {
  909. readonly name: string;
  910. readonly value: string;
  911. };
  912. declare type IDefaultStylesOptions = {
  913. readonly document?: IDocumentDefaultsOptions;
  914. readonly title?: IBaseParagraphStyleOptions;
  915. readonly heading1?: IBaseParagraphStyleOptions;
  916. readonly heading2?: IBaseParagraphStyleOptions;
  917. readonly heading3?: IBaseParagraphStyleOptions;
  918. readonly heading4?: IBaseParagraphStyleOptions;
  919. readonly heading5?: IBaseParagraphStyleOptions;
  920. readonly heading6?: IBaseParagraphStyleOptions;
  921. readonly strong?: IBaseParagraphStyleOptions;
  922. readonly listParagraph?: IBaseParagraphStyleOptions;
  923. readonly hyperlink?: IBaseCharacterStyleOptions;
  924. readonly footnoteReference?: IBaseCharacterStyleOptions;
  925. readonly footnoteText?: IBaseParagraphStyleOptions;
  926. readonly footnoteTextChar?: IBaseCharacterStyleOptions;
  927. readonly endnoteReference?: IBaseCharacterStyleOptions;
  928. readonly endnoteText?: IBaseParagraphStyleOptions;
  929. readonly endnoteTextChar?: IBaseCharacterStyleOptions;
  930. };
  931. declare type IDeletedRunOptions = IRunOptions & IChangedAttributesProperties;
  932. export declare type IDistance = {
  933. readonly distT?: number;
  934. readonly distB?: number;
  935. readonly distL?: number;
  936. readonly distR?: number;
  937. };
  938. export declare type IDocGridAttributesProperties = {
  939. readonly type?: (typeof DocumentGridType)[keyof typeof DocumentGridType];
  940. readonly linePitch: number;
  941. readonly charSpace?: number;
  942. };
  943. export declare type IDocumentAttributesProperties = Partial<Record<DocumentAttributeNamespace, string>> & {
  944. readonly Ignorable?: string;
  945. };
  946. export declare type IDocumentBackgroundOptions = {
  947. readonly color?: string;
  948. readonly themeColor?: string;
  949. readonly themeShade?: string;
  950. readonly themeTint?: string;
  951. };
  952. export declare type IDocumentDefaultsOptions = {
  953. readonly paragraph?: IParagraphStylePropertiesOptions;
  954. readonly run?: IRunStylePropertiesOptions;
  955. };
  956. export declare type IDocumentFooter = {
  957. readonly footer: FooterWrapper;
  958. readonly type: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
  959. };
  960. export declare type IDocumentHeader = {
  961. readonly header: HeaderWrapper;
  962. readonly type: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
  963. };
  964. export declare type IDocumentOptions = {
  965. readonly background?: IDocumentBackgroundOptions;
  966. };
  967. export declare type IDrawingOptions = {
  968. readonly floating?: IFloating;
  969. readonly docProperties?: DocPropertiesOptions;
  970. readonly outline?: OutlineOptions;
  971. readonly solidFill?: SolidFillOptions;
  972. };
  973. export declare type IExtendedMediaData = IMediaData | WpsMediaData | WpgMediaData;
  974. export declare type IExternalHyperlinkOptions = {
  975. readonly children: readonly ParagraphChild[];
  976. readonly link: string;
  977. };
  978. export declare type IFloating = {
  979. readonly horizontalPosition: IHorizontalPositionOptions;
  980. readonly verticalPosition: IVerticalPositionOptions;
  981. readonly allowOverlap?: boolean;
  982. readonly lockAnchor?: boolean;
  983. readonly behindDocument?: boolean;
  984. readonly layoutInCell?: boolean;
  985. readonly margins?: IMargins;
  986. readonly wrap?: ITextWrapping;
  987. readonly zIndex?: number;
  988. };
  989. export declare type IFontAttributesProperties = {
  990. readonly ascii?: string;
  991. readonly cs?: string;
  992. readonly eastAsia?: string;
  993. readonly hAnsi?: string;
  994. readonly hint?: string;
  995. };
  996. declare type IFontOptions = {
  997. readonly name: string;
  998. readonly hint?: string;
  999. };
  1000. export declare type IFrameOptions = IXYFrameOptions | IAlignmentFrameOptions;
  1001. export declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
  1002. private readonly includeIfEmpty;
  1003. constructor(rootKey: string, includeIfEmpty?: boolean);
  1004. prepForXml(context: IContext): IXmlableObject | undefined;
  1005. }
  1006. export declare type IGroupChildMediaData = (WpsMediaData | IMediaData) & WpgCommonMediaData;
  1007. export declare type IHeaderFooterGroup<T> = {
  1008. readonly default?: T;
  1009. readonly first?: T;
  1010. readonly even?: T;
  1011. };
  1012. export declare type IHeaderFooterOptions = {
  1013. readonly type?: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
  1014. readonly id?: number;
  1015. };
  1016. export declare type IHeaderOptions = {
  1017. readonly children: readonly (Paragraph | Table)[];
  1018. };
  1019. export declare type IHorizontalPositionOptions = {
  1020. readonly relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
  1021. readonly align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
  1022. readonly offset?: number;
  1023. };
  1024. declare type IHyphenationOptions = {
  1025. readonly autoHyphenation?: boolean;
  1026. readonly hyphenationZone?: number;
  1027. readonly consecutiveHyphenLimit?: number;
  1028. readonly doNotHyphenateCaps?: boolean;
  1029. };
  1030. export declare type IImageOptions = (RegularImageOptions | SvgMediaOptions) & CoreImageOptions;
  1031. export declare type IIndentAttributesProperties = {
  1032. readonly start?: number | UniversalMeasure;
  1033. readonly end?: number | UniversalMeasure;
  1034. readonly left?: number | UniversalMeasure;
  1035. readonly right?: number | UniversalMeasure;
  1036. readonly hanging?: number | PositiveUniversalMeasure;
  1037. readonly firstLine?: number | PositiveUniversalMeasure;
  1038. };
  1039. declare type IInsertedRunOptions = IChangedAttributesProperties & IRunOptions;
  1040. export declare type IInternalHyperlinkOptions = {
  1041. readonly children: readonly ParagraphChild[];
  1042. readonly anchor: string;
  1043. };
  1044. declare type ILanguageOptions = {
  1045. readonly value?: string;
  1046. readonly eastAsia?: string;
  1047. readonly bidirectional?: string;
  1048. };
  1049. export declare type ILevelParagraphStylePropertiesOptions = {
  1050. readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
  1051. readonly thematicBreak?: boolean;
  1052. readonly contextualSpacing?: boolean;
  1053. readonly rightTabStop?: number;
  1054. readonly leftTabStop?: number;
  1055. readonly indent?: IIndentAttributesProperties;
  1056. readonly spacing?: ISpacingProperties;
  1057. readonly keepNext?: boolean;
  1058. readonly keepLines?: boolean;
  1059. readonly outlineLevel?: number;
  1060. };
  1061. export declare type ILevelsOptions = {
  1062. readonly level: number;
  1063. readonly format?: (typeof LevelFormat)[keyof typeof LevelFormat];
  1064. readonly text?: string;
  1065. readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
  1066. readonly start?: number;
  1067. readonly suffix?: (typeof LevelSuffix)[keyof typeof LevelSuffix];
  1068. readonly isLegalNumberingStyle?: boolean;
  1069. readonly style?: {
  1070. readonly run?: IRunStylePropertiesOptions;
  1071. readonly paragraph?: ILevelParagraphStylePropertiesOptions;
  1072. };
  1073. };
  1074. export declare type ILineNumberAttributes = {
  1075. readonly countBy?: number;
  1076. readonly start?: number;
  1077. readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
  1078. readonly distance?: number | PositiveUniversalMeasure;
  1079. };
  1080. export declare class ImageRun extends Run {
  1081. private readonly imageData;
  1082. constructor(options: IImageOptions);
  1083. prepForXml(context: IContext): IXmlableObject | undefined;
  1084. }
  1085. export declare type IMargins = {
  1086. readonly left?: number;
  1087. readonly bottom?: number;
  1088. readonly top?: number;
  1089. readonly right?: number;
  1090. };
  1091. export declare type IMathFractionOptions = {
  1092. readonly numerator: readonly MathComponent[];
  1093. readonly denominator: readonly MathComponent[];
  1094. };
  1095. export declare type IMathFunctionOptions = {
  1096. readonly children: readonly MathComponent[];
  1097. readonly name: readonly MathComponent[];
  1098. };
  1099. export declare type IMathIntegralOptions = {
  1100. readonly children: readonly MathComponent[];
  1101. readonly subScript?: readonly MathComponent[];
  1102. readonly superScript?: readonly MathComponent[];
  1103. };
  1104. export declare type IMathLimitLowerOptions = {
  1105. readonly children: readonly MathComponent[];
  1106. readonly limit: readonly MathComponent[];
  1107. };
  1108. export declare type IMathLimitUpperOptions = {
  1109. readonly children: readonly MathComponent[];
  1110. readonly limit: readonly MathComponent[];
  1111. };
  1112. export declare type IMathOptions = {
  1113. readonly children: readonly MathComponent[];
  1114. };
  1115. export declare type IMathPreSubSuperScriptOptions = {
  1116. readonly children: readonly MathComponent[];
  1117. readonly subScript: readonly MathComponent[];
  1118. readonly superScript: readonly MathComponent[];
  1119. };
  1120. export declare type IMathRadicalOptions = {
  1121. readonly children: readonly MathComponent[];
  1122. readonly degree?: readonly MathComponent[];
  1123. };
  1124. export declare type IMathSubScriptOptions = {
  1125. readonly children: readonly MathComponent[];
  1126. readonly subScript: readonly MathComponent[];
  1127. };
  1128. export declare type IMathSubSuperScriptOptions = {
  1129. readonly children: readonly MathComponent[];
  1130. readonly subScript: readonly MathComponent[];
  1131. readonly superScript: readonly MathComponent[];
  1132. };
  1133. export declare type IMathSumOptions = {
  1134. readonly children: readonly MathComponent[];
  1135. readonly subScript?: readonly MathComponent[];
  1136. readonly superScript?: readonly MathComponent[];
  1137. };
  1138. export declare type IMathSuperScriptOptions = {
  1139. readonly children: readonly MathComponent[];
  1140. readonly superScript: readonly MathComponent[];
  1141. };
  1142. export declare type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
  1143. export declare type IMediaDataTransformation = {
  1144. readonly offset?: {
  1145. readonly pixels: {
  1146. readonly x: number;
  1147. readonly y: number;
  1148. };
  1149. readonly emus?: {
  1150. readonly x: number;
  1151. readonly y: number;
  1152. };
  1153. };
  1154. readonly pixels: {
  1155. readonly x: number;
  1156. readonly y: number;
  1157. };
  1158. readonly emus: {
  1159. readonly x: number;
  1160. readonly y: number;
  1161. };
  1162. readonly flip?: {
  1163. readonly vertical?: boolean;
  1164. readonly horizontal?: boolean;
  1165. };
  1166. readonly rotation?: number;
  1167. };
  1168. export declare type IMediaTransformation = {
  1169. readonly offset?: {
  1170. readonly top?: number;
  1171. readonly left?: number;
  1172. };
  1173. readonly width: number;
  1174. readonly height: number;
  1175. readonly flip?: {
  1176. readonly vertical?: boolean;
  1177. readonly horizontal?: boolean;
  1178. };
  1179. readonly rotation?: number;
  1180. };
  1181. export declare class ImportedRootElementAttributes extends XmlComponent {
  1182. private readonly _attr;
  1183. constructor(_attr: any);
  1184. prepForXml(_: IContext): IXmlableObject;
  1185. }
  1186. export declare class ImportedXmlComponent extends XmlComponent {
  1187. static fromXmlString(importedContent: string): ImportedXmlComponent;
  1188. constructor(rootKey: string, _attr?: any);
  1189. push(xmlComponent: XmlComponent | string): void;
  1190. }
  1191. export declare abstract class InitializableXmlComponent extends XmlComponent {
  1192. constructor(rootKey: string, initComponent?: InitializableXmlComponent);
  1193. }
  1194. declare type INonVisualShapePropertiesOptions = {
  1195. readonly txBox: string;
  1196. };
  1197. export declare type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream | default_2;
  1198. export declare class InsertedTableCell extends XmlComponent {
  1199. constructor(options: IChangedAttributesProperties);
  1200. }
  1201. export declare class InsertedTableRow extends XmlComponent {
  1202. constructor(options: IChangedAttributesProperties);
  1203. }
  1204. export declare class InsertedTextRun extends XmlComponent {
  1205. constructor(options: IInsertedRunOptions);
  1206. }
  1207. export declare class InternalHyperlink extends ConcreteHyperlink {
  1208. constructor(options: IInternalHyperlinkOptions);
  1209. }
  1210. export declare type INumberedItemReferenceOptions = {
  1211. readonly hyperlink?: boolean;
  1212. readonly referenceFormat?: NumberedItemReferenceFormat;
  1213. };
  1214. export declare type INumberingOptions = {
  1215. readonly config: readonly {
  1216. readonly levels: readonly ILevelsOptions[];
  1217. readonly reference: string;
  1218. }[];
  1219. };
  1220. declare type IOverrideLevel = {
  1221. readonly num: number;
  1222. readonly start?: number;
  1223. };
  1224. export declare type IPageBorderAttributes = {
  1225. readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
  1226. readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
  1227. readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
  1228. };
  1229. export declare type IPageBordersOptions = {
  1230. readonly pageBorders?: IPageBorderAttributes;
  1231. readonly pageBorderTop?: IBorderOptions;
  1232. readonly pageBorderRight?: IBorderOptions;
  1233. readonly pageBorderBottom?: IBorderOptions;
  1234. readonly pageBorderLeft?: IBorderOptions;
  1235. };
  1236. export declare type IPageMarginAttributes = {
  1237. readonly top?: number | UniversalMeasure;
  1238. readonly right?: number | PositiveUniversalMeasure;
  1239. readonly bottom?: number | UniversalMeasure;
  1240. readonly left?: number | PositiveUniversalMeasure;
  1241. readonly header?: number | PositiveUniversalMeasure;
  1242. readonly footer?: number | PositiveUniversalMeasure;
  1243. readonly gutter?: number | PositiveUniversalMeasure;
  1244. };
  1245. export declare type IPageNumberTypeAttributes = {
  1246. readonly start?: number;
  1247. readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
  1248. readonly separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
  1249. };
  1250. export declare type IPageReferenceOptions = {
  1251. readonly hyperlink?: boolean;
  1252. readonly useRelativePosition?: boolean;
  1253. };
  1254. export declare type IPageSizeAttributes = {
  1255. readonly width: number | PositiveUniversalMeasure;
  1256. readonly height: number | PositiveUniversalMeasure;
  1257. readonly orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
  1258. readonly code?: number;
  1259. };
  1260. export declare type IParagraphOptions = {
  1261. readonly text?: string;
  1262. readonly children?: readonly ParagraphChild[];
  1263. } & IParagraphPropertiesOptions;
  1264. export declare type IParagraphPropertiesChangeOptions = IChangedAttributesProperties & IParagraphPropertiesOptionsBase;
  1265. export declare type IParagraphPropertiesOptions = {
  1266. readonly revision?: IParagraphPropertiesChangeOptions;
  1267. readonly includeIfEmpty?: boolean;
  1268. } & IParagraphPropertiesOptionsBase;
  1269. export declare type IParagraphPropertiesOptionsBase = {
  1270. readonly heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
  1271. readonly bidirectional?: boolean;
  1272. readonly pageBreakBefore?: boolean;
  1273. readonly tabStops?: readonly TabStopDefinition[];
  1274. readonly style?: string;
  1275. readonly bullet?: {
  1276. readonly level: number;
  1277. };
  1278. readonly widowControl?: boolean;
  1279. readonly frame?: IFrameOptions;
  1280. readonly suppressLineNumbers?: boolean;
  1281. readonly wordWrap?: boolean;
  1282. readonly overflowPunctuation?: boolean;
  1283. readonly scale?: number;
  1284. readonly autoSpaceEastAsianText?: boolean;
  1285. readonly run?: IParagraphRunOptions;
  1286. } & IParagraphStylePropertiesOptions;
  1287. export declare type IParagraphRunOptions = IRunOptionsBase & IParagraphRunPropertiesOptions;
  1288. export declare type IParagraphRunPropertiesOptions = {
  1289. readonly insertion?: IChangedAttributesProperties;
  1290. readonly deletion?: IChangedAttributesProperties;
  1291. } & IRunPropertiesOptions;
  1292. export declare type IParagraphStyleOptions = {
  1293. readonly id: string;
  1294. } & IBaseParagraphStyleOptions;
  1295. export declare type IParagraphStylePropertiesOptions = {
  1296. readonly border?: IBordersOptions;
  1297. readonly shading?: IShadingAttributesProperties;
  1298. readonly numbering?: {
  1299. readonly reference: string;
  1300. readonly level: number;
  1301. readonly instance?: number;
  1302. readonly custom?: boolean;
  1303. } | false;
  1304. } & ILevelParagraphStylePropertiesOptions;
  1305. export declare type IPatch = ParagraphPatch | FilePatch;
  1306. export declare type IPropertiesOptions = {
  1307. readonly sections: readonly ISectionOptions[];
  1308. readonly title?: string;
  1309. readonly subject?: string;
  1310. readonly creator?: string;
  1311. readonly keywords?: string;
  1312. readonly description?: string;
  1313. readonly lastModifiedBy?: string;
  1314. readonly revision?: number;
  1315. readonly externalStyles?: string;
  1316. readonly styles?: IStylesOptions;
  1317. readonly numbering?: INumberingOptions;
  1318. readonly comments?: ICommentsOptions;
  1319. readonly footnotes?: Readonly<Record<string, {
  1320. readonly children: readonly Paragraph[];
  1321. }>>;
  1322. readonly endnotes?: Readonly<Record<string, {
  1323. readonly children: readonly Paragraph[];
  1324. }>>;
  1325. readonly background?: IDocumentBackgroundOptions;
  1326. readonly features?: {
  1327. readonly trackRevisions?: boolean;
  1328. readonly updateFields?: boolean;
  1329. };
  1330. readonly compatabilityModeVersion?: number;
  1331. readonly compatibility?: ICompatibilityOptions;
  1332. readonly customProperties?: readonly ICustomPropertyOptions[];
  1333. readonly evenAndOddHeaderAndFooters?: boolean;
  1334. readonly defaultTabStop?: number;
  1335. readonly fonts?: readonly FontOptions[];
  1336. readonly hyphenation?: IHyphenationOptions;
  1337. };
  1338. export declare type IRunOptions = IRunOptionsBase & IRunPropertiesOptions;
  1339. declare type IRunOptionsBase = {
  1340. 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)[];
  1341. readonly break?: number;
  1342. readonly text?: string;
  1343. };
  1344. export declare type IRunPropertiesChangeOptions = {} & IRunPropertiesOptions & IChangedAttributesProperties;
  1345. export declare type IRunPropertiesOptions = {
  1346. readonly style?: string;
  1347. } & IRunStylePropertiesOptions;
  1348. export declare type IRunStylePropertiesOptions = {
  1349. readonly noProof?: boolean;
  1350. readonly bold?: boolean;
  1351. readonly boldComplexScript?: boolean;
  1352. readonly italics?: boolean;
  1353. readonly italicsComplexScript?: boolean;
  1354. readonly underline?: {
  1355. readonly color?: string;
  1356. readonly type?: (typeof UnderlineType)[keyof typeof UnderlineType];
  1357. };
  1358. readonly effect?: (typeof TextEffect)[keyof typeof TextEffect];
  1359. readonly emphasisMark?: {
  1360. readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
  1361. };
  1362. readonly color?: string;
  1363. readonly kern?: number | PositiveUniversalMeasure;
  1364. readonly position?: UniversalMeasure;
  1365. readonly size?: number | PositiveUniversalMeasure;
  1366. readonly sizeComplexScript?: boolean | number | PositiveUniversalMeasure;
  1367. readonly rightToLeft?: boolean;
  1368. readonly smallCaps?: boolean;
  1369. readonly allCaps?: boolean;
  1370. readonly strike?: boolean;
  1371. readonly doubleStrike?: boolean;
  1372. readonly subScript?: boolean;
  1373. readonly superScript?: boolean;
  1374. readonly font?: string | IFontOptions | IFontAttributesProperties;
  1375. readonly highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
  1376. readonly highlightComplexScript?: boolean | string;
  1377. readonly characterSpacing?: number;
  1378. readonly shading?: IShadingAttributesProperties;
  1379. readonly emboss?: boolean;
  1380. readonly imprint?: boolean;
  1381. readonly revision?: IRunPropertiesChangeOptions;
  1382. readonly language?: ILanguageOptions;
  1383. readonly border?: IBorderOptions;
  1384. readonly snapToGrid?: boolean;
  1385. readonly vanish?: boolean;
  1386. readonly specVanish?: boolean;
  1387. readonly scale?: number;
  1388. readonly math?: boolean;
  1389. };
  1390. export declare type ISectionOptions = {
  1391. readonly headers?: {
  1392. readonly default?: Header;
  1393. readonly first?: Header;
  1394. readonly even?: Header;
  1395. };
  1396. readonly footers?: {
  1397. readonly default?: Footer;
  1398. readonly first?: Footer;
  1399. readonly even?: Footer;
  1400. };
  1401. readonly properties?: ISectionPropertiesOptions;
  1402. readonly children: readonly FileChild[];
  1403. };
  1404. export declare type ISectionPropertiesChangeOptions = IChangedAttributesProperties & ISectionPropertiesOptionsBase;
  1405. export declare type ISectionPropertiesOptions = {
  1406. readonly revision?: ISectionPropertiesChangeOptions;
  1407. } & ISectionPropertiesOptionsBase;
  1408. export declare type ISectionPropertiesOptionsBase = {
  1409. readonly page?: {
  1410. readonly size?: Partial<IPageSizeAttributes>;
  1411. readonly margin?: IPageMarginAttributes;
  1412. readonly pageNumbers?: IPageNumberTypeAttributes;
  1413. readonly borders?: IPageBordersOptions;
  1414. readonly textDirection?: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType];
  1415. };
  1416. readonly grid?: Partial<IDocGridAttributesProperties>;
  1417. readonly headerWrapperGroup?: IHeaderFooterGroup<HeaderWrapper>;
  1418. readonly footerWrapperGroup?: IHeaderFooterGroup<FooterWrapper>;
  1419. readonly lineNumbers?: ILineNumberAttributes;
  1420. readonly titlePage?: boolean;
  1421. readonly verticalAlign?: SectionVerticalAlign;
  1422. readonly column?: IColumnsAttributes;
  1423. readonly type?: (typeof SectionType)[keyof typeof SectionType];
  1424. };
  1425. declare type ISettingsOptions = {
  1426. readonly compatibilityModeVersion?: number;
  1427. readonly evenAndOddHeaders?: boolean;
  1428. readonly trackRevisions?: boolean;
  1429. readonly updateFields?: boolean;
  1430. readonly compatibility?: ICompatibilityOptions;
  1431. readonly defaultTabStop?: number;
  1432. readonly hyphenation?: IHyphenationOptions;
  1433. };
  1434. export declare type IShadingAttributesProperties = {
  1435. readonly fill?: string;
  1436. readonly color?: string;
  1437. readonly type?: (typeof ShadingType)[keyof typeof ShadingType];
  1438. };
  1439. export declare type ISpacingProperties = {
  1440. readonly after?: number;
  1441. readonly before?: number;
  1442. readonly line?: number;
  1443. readonly lineRule?: (typeof LineRuleType)[keyof typeof LineRuleType];
  1444. readonly beforeAutoSpacing?: boolean;
  1445. readonly afterAutoSpacing?: boolean;
  1446. };
  1447. declare type IStyleAttributes = {
  1448. readonly type?: string;
  1449. readonly styleId?: string;
  1450. readonly default?: boolean;
  1451. readonly customStyle?: string;
  1452. };
  1453. declare type IStyleOptions = {
  1454. readonly name?: string;
  1455. readonly basedOn?: string;
  1456. readonly next?: string;
  1457. readonly link?: string;
  1458. readonly uiPriority?: number;
  1459. readonly semiHidden?: boolean;
  1460. readonly unhideWhenUsed?: boolean;
  1461. readonly quickFormat?: boolean;
  1462. };
  1463. export declare type IStylesOptions = {
  1464. readonly default?: IDefaultStylesOptions;
  1465. readonly initialStyles?: BaseXmlComponent;
  1466. readonly paragraphStyles?: readonly IParagraphStyleOptions[];
  1467. readonly characterStyles?: readonly ICharacterStyleOptions[];
  1468. readonly importedStyles?: readonly (XmlComponent | StyleForParagraph | StyleForCharacter | ImportedXmlComponent)[];
  1469. };
  1470. export declare type ISymbolRunOptions = {
  1471. readonly char: string;
  1472. readonly symbolfont?: string;
  1473. } & IRunOptions;
  1474. export declare type ITableBordersOptions = {
  1475. readonly top?: IBorderOptions;
  1476. readonly bottom?: IBorderOptions;
  1477. readonly left?: IBorderOptions;
  1478. readonly right?: IBorderOptions;
  1479. readonly insideHorizontal?: IBorderOptions;
  1480. readonly insideVertical?: IBorderOptions;
  1481. };
  1482. export declare type ITableCellBorders = {
  1483. readonly top?: IBorderOptions;
  1484. readonly start?: IBorderOptions;
  1485. readonly left?: IBorderOptions;
  1486. readonly bottom?: IBorderOptions;
  1487. readonly end?: IBorderOptions;
  1488. readonly right?: IBorderOptions;
  1489. };
  1490. declare type ITableCellMarginOptions = {
  1491. readonly marginUnitType?: (typeof WidthType)[keyof typeof WidthType];
  1492. readonly top?: number;
  1493. readonly bottom?: number;
  1494. readonly left?: number;
  1495. readonly right?: number;
  1496. };
  1497. export declare type ITableCellOptions = {
  1498. readonly children: readonly (Paragraph | Table)[];
  1499. } & ITableCellPropertiesOptions;
  1500. declare type ITableCellPropertiesChangeOptions = ITableCellPropertiesOptionsBase & IChangedAttributesProperties;
  1501. declare type ITableCellPropertiesOptions = {
  1502. readonly revision?: ITableCellPropertiesChangeOptions;
  1503. readonly includeIfEmpty?: boolean;
  1504. } & ITableCellPropertiesOptionsBase;
  1505. declare type ITableCellPropertiesOptionsBase = {
  1506. readonly shading?: IShadingAttributesProperties;
  1507. readonly margins?: ITableCellMarginOptions;
  1508. readonly verticalAlign?: TableVerticalAlign;
  1509. readonly textDirection?: (typeof TextDirection)[keyof typeof TextDirection];
  1510. readonly verticalMerge?: (typeof VerticalMergeType)[keyof typeof VerticalMergeType];
  1511. readonly width?: ITableWidthProperties;
  1512. readonly columnSpan?: number;
  1513. readonly rowSpan?: number;
  1514. readonly borders?: ITableCellBorders;
  1515. readonly insertion?: IChangedAttributesProperties;
  1516. readonly deletion?: IChangedAttributesProperties;
  1517. readonly cellMerge?: ICellMergeAttributes;
  1518. };
  1519. declare type ITableCellSpacingProperties = {
  1520. readonly value: number | Percentage | UniversalMeasure;
  1521. readonly type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
  1522. };
  1523. export declare type ITableFloatOptions = {
  1524. readonly horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
  1525. readonly absoluteHorizontalPosition?: number | UniversalMeasure;
  1526. readonly relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
  1527. readonly verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
  1528. readonly absoluteVerticalPosition?: number | UniversalMeasure;
  1529. readonly relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
  1530. readonly bottomFromText?: number | PositiveUniversalMeasure;
  1531. readonly topFromText?: number | PositiveUniversalMeasure;
  1532. readonly leftFromText?: number | PositiveUniversalMeasure;
  1533. readonly rightFromText?: number | PositiveUniversalMeasure;
  1534. readonly overlap?: (typeof OverlapType)[keyof typeof OverlapType];
  1535. };
  1536. declare type ITableGridChangeOptions = {
  1537. readonly id: number;
  1538. readonly columnWidths: readonly number[] | readonly PositiveUniversalMeasure[];
  1539. };
  1540. export declare type ITableLookOptions = {
  1541. readonly firstRow?: boolean;
  1542. readonly lastRow?: boolean;
  1543. readonly firstColumn?: boolean;
  1544. readonly lastColumn?: boolean;
  1545. readonly noHBand?: boolean;
  1546. readonly noVBand?: boolean;
  1547. };
  1548. export declare type ITableOfContentsOptions = {
  1549. readonly captionLabel?: string;
  1550. readonly entriesFromBookmark?: string;
  1551. readonly captionLabelIncludingNumbers?: string;
  1552. readonly sequenceAndPageNumbersSeparator?: string;
  1553. readonly tcFieldIdentifier?: string;
  1554. readonly hyperlink?: boolean;
  1555. readonly tcFieldLevelRange?: string;
  1556. readonly pageNumbersEntryLevelsRange?: string;
  1557. readonly headingStyleRange?: string;
  1558. readonly entryAndPageNumberSeparator?: string;
  1559. readonly seqFieldIdentifierForPrefix?: string;
  1560. readonly stylesWithLevels?: readonly StyleLevel[];
  1561. readonly useAppliedParagraphOutlineLevel?: boolean;
  1562. readonly preserveTabInEntries?: boolean;
  1563. readonly preserveNewLineInEntries?: boolean;
  1564. readonly hideTabAndPageNumbersInWebView?: boolean;
  1565. };
  1566. export declare type ITableOptions = {
  1567. readonly rows: readonly TableRow[];
  1568. readonly width?: ITableWidthProperties;
  1569. readonly columnWidths?: readonly number[];
  1570. readonly columnWidthsRevision?: ITableGridChangeOptions;
  1571. readonly margins?: ITableCellMarginOptions;
  1572. readonly indent?: ITableWidthProperties;
  1573. readonly float?: ITableFloatOptions;
  1574. readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
  1575. readonly style?: string;
  1576. readonly borders?: ITableBordersOptions;
  1577. readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
  1578. readonly visuallyRightToLeft?: boolean;
  1579. readonly tableLook?: ITableLookOptions;
  1580. readonly cellSpacing?: ITableCellSpacingProperties;
  1581. readonly revision?: ITablePropertiesChangeOptions;
  1582. };
  1583. export declare type ITablePropertiesChangeOptions = ITablePropertiesOptions & IChangedAttributesProperties;
  1584. export declare type ITablePropertiesOptions = {
  1585. readonly revision?: ITablePropertiesChangeOptions;
  1586. readonly includeIfEmpty?: boolean;
  1587. } & ITablePropertiesOptionsBase;
  1588. export declare type ITablePropertiesOptionsBase = {
  1589. readonly width?: ITableWidthProperties;
  1590. readonly indent?: ITableWidthProperties;
  1591. readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
  1592. readonly borders?: ITableBordersOptions;
  1593. readonly float?: ITableFloatOptions;
  1594. readonly shading?: IShadingAttributesProperties;
  1595. readonly style?: string;
  1596. readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
  1597. readonly cellMargin?: ITableCellMarginOptions;
  1598. readonly visuallyRightToLeft?: boolean;
  1599. readonly tableLook?: ITableLookOptions;
  1600. readonly cellSpacing?: ITableCellSpacingProperties;
  1601. };
  1602. export declare type ITableRowOptions = {
  1603. readonly children: readonly TableCell[];
  1604. } & ITableRowPropertiesOptions;
  1605. export declare type ITableRowPropertiesChangeOptions = ITableRowPropertiesOptionsBase & IChangedAttributesProperties;
  1606. export declare type ITableRowPropertiesOptions = ITableRowPropertiesOptionsBase & {
  1607. readonly insertion?: IChangedAttributesProperties;
  1608. readonly deletion?: IChangedAttributesProperties;
  1609. readonly revision?: ITableRowPropertiesChangeOptions;
  1610. readonly includeIfEmpty?: boolean;
  1611. };
  1612. export declare type ITableRowPropertiesOptionsBase = {
  1613. readonly cantSplit?: boolean;
  1614. readonly tableHeader?: boolean;
  1615. readonly height?: {
  1616. readonly value: number | PositiveUniversalMeasure;
  1617. readonly rule: (typeof HeightRule)[keyof typeof HeightRule];
  1618. };
  1619. readonly cellSpacing?: ITableCellSpacingProperties;
  1620. };
  1621. export declare type ITableWidthProperties = {
  1622. readonly size: number | Percentage | UniversalMeasure;
  1623. readonly type?: (typeof WidthType)[keyof typeof WidthType];
  1624. };
  1625. declare type ITextboxOptions = Omit<IParagraphOptions, "style"> & {
  1626. readonly style?: VmlShapeStyle;
  1627. };
  1628. export declare type ITextWrapping = {
  1629. readonly type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
  1630. readonly side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
  1631. readonly margins?: IDistance;
  1632. };
  1633. export declare type IVerticalPositionOptions = {
  1634. readonly relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
  1635. readonly align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
  1636. readonly offset?: number;
  1637. };
  1638. declare type IViewWrapper = {
  1639. readonly View: Document_2 | Footer_2 | Header_2 | FootNotes | Endnotes | XmlComponent;
  1640. readonly Relationships: Relationships;
  1641. };
  1642. export declare type IWpgGroupOptions = {
  1643. readonly type: "wpg";
  1644. } & CoreGroupOptions;
  1645. export declare type IWpsShapeOptions = WpsShapeCoreOptions & {
  1646. readonly type: "wps";
  1647. } & CoreShapeOptions;
  1648. export declare interface IXmlableObject extends Record<string, unknown> {
  1649. readonly [key: string]: any;
  1650. }
  1651. export declare type IXmlAttribute = Readonly<Record<string, string | number | boolean>>;
  1652. declare type IXmlifyedFile = {
  1653. readonly data: string;
  1654. readonly path: string;
  1655. };
  1656. export declare type IXYFrameOptions = {
  1657. readonly type: "absolute";
  1658. readonly position: {
  1659. readonly x: number;
  1660. readonly y: number;
  1661. };
  1662. } & IBaseFrameOptions;
  1663. export declare class LastRenderedPageBreak extends EmptyElement {
  1664. constructor();
  1665. }
  1666. export declare const LeaderType: {
  1667. readonly DOT: "dot";
  1668. readonly HYPHEN: "hyphen";
  1669. readonly MIDDLE_DOT: "middleDot";
  1670. readonly NONE: "none";
  1671. readonly UNDERSCORE: "underscore";
  1672. };
  1673. declare type LengthUnit = "auto" | number | Percentage | UniversalMeasure | RelativeMeasure;
  1674. export declare class Level extends LevelBase {
  1675. }
  1676. export declare class LevelBase extends XmlComponent {
  1677. private readonly paragraphProperties;
  1678. private readonly runProperties;
  1679. constructor({ level, format, text, alignment, start, style, suffix, isLegalNumberingStyle, }: ILevelsOptions);
  1680. }
  1681. export declare const LevelFormat: {
  1682. readonly DECIMAL: "decimal";
  1683. readonly UPPER_ROMAN: "upperRoman";
  1684. readonly LOWER_ROMAN: "lowerRoman";
  1685. readonly UPPER_LETTER: "upperLetter";
  1686. readonly LOWER_LETTER: "lowerLetter";
  1687. readonly ORDINAL: "ordinal";
  1688. readonly CARDINAL_TEXT: "cardinalText";
  1689. readonly ORDINAL_TEXT: "ordinalText";
  1690. readonly HEX: "hex";
  1691. readonly CHICAGO: "chicago";
  1692. readonly IDEOGRAPH__DIGITAL: "ideographDigital";
  1693. readonly JAPANESE_COUNTING: "japaneseCounting";
  1694. readonly AIUEO: "aiueo";
  1695. readonly IROHA: "iroha";
  1696. readonly DECIMAL_FULL_WIDTH: "decimalFullWidth";
  1697. readonly DECIMAL_HALF_WIDTH: "decimalHalfWidth";
  1698. readonly JAPANESE_LEGAL: "japaneseLegal";
  1699. readonly JAPANESE_DIGITAL_TEN_THOUSAND: "japaneseDigitalTenThousand";
  1700. readonly DECIMAL_ENCLOSED_CIRCLE: "decimalEnclosedCircle";
  1701. readonly DECIMAL_FULL_WIDTH2: "decimalFullWidth2";
  1702. readonly AIUEO_FULL_WIDTH: "aiueoFullWidth";
  1703. readonly IROHA_FULL_WIDTH: "irohaFullWidth";
  1704. readonly DECIMAL_ZERO: "decimalZero";
  1705. readonly BULLET: "bullet";
  1706. readonly GANADA: "ganada";
  1707. readonly CHOSUNG: "chosung";
  1708. readonly DECIMAL_ENCLOSED_FULLSTOP: "decimalEnclosedFullstop";
  1709. readonly DECIMAL_ENCLOSED_PARENTHESES: "decimalEnclosedParen";
  1710. readonly DECIMAL_ENCLOSED_CIRCLE_CHINESE: "decimalEnclosedCircleChinese";
  1711. readonly IDEOGRAPH_ENCLOSED_CIRCLE: "ideographEnclosedCircle";
  1712. readonly IDEOGRAPH_TRADITIONAL: "ideographTraditional";
  1713. readonly IDEOGRAPH_ZODIAC: "ideographZodiac";
  1714. readonly IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional";
  1715. readonly TAIWANESE_COUNTING: "taiwaneseCounting";
  1716. readonly IDEOGRAPH_LEGAL_TRADITIONAL: "ideographLegalTraditional";
  1717. readonly TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand";
  1718. readonly TAIWANESE_DIGITAL: "taiwaneseDigital";
  1719. readonly CHINESE_COUNTING: "chineseCounting";
  1720. readonly CHINESE_LEGAL_SIMPLIFIED: "chineseLegalSimplified";
  1721. readonly CHINESE_COUNTING_THOUSAND: "chineseCountingThousand";
  1722. readonly KOREAN_DIGITAL: "koreanDigital";
  1723. readonly KOREAN_COUNTING: "koreanCounting";
  1724. readonly KOREAN_LEGAL: "koreanLegal";
  1725. readonly KOREAN_DIGITAL2: "koreanDigital2";
  1726. readonly VIETNAMESE_COUNTING: "vietnameseCounting";
  1727. readonly RUSSIAN_LOWER: "russianLower";
  1728. readonly RUSSIAN_UPPER: "russianUpper";
  1729. readonly NONE: "none";
  1730. readonly NUMBER_IN_DASH: "numberInDash";
  1731. readonly HEBREW1: "hebrew1";
  1732. readonly HEBREW2: "hebrew2";
  1733. readonly ARABIC_ALPHA: "arabicAlpha";
  1734. readonly ARABIC_ABJAD: "arabicAbjad";
  1735. readonly HINDI_VOWELS: "hindiVowels";
  1736. readonly HINDI_CONSONANTS: "hindiConsonants";
  1737. readonly HINDI_NUMBERS: "hindiNumbers";
  1738. readonly HINDI_COUNTING: "hindiCounting";
  1739. readonly THAI_LETTERS: "thaiLetters";
  1740. readonly THAI_NUMBERS: "thaiNumbers";
  1741. readonly THAI_COUNTING: "thaiCounting";
  1742. readonly BAHT_TEXT: "bahtText";
  1743. readonly DOLLAR_TEXT: "dollarText";
  1744. readonly CUSTOM: "custom";
  1745. };
  1746. export declare class LevelForOverride extends LevelBase {
  1747. }
  1748. export declare class LevelOverride extends XmlComponent {
  1749. constructor(levelNum: number, start?: number);
  1750. }
  1751. export declare const LevelSuffix: {
  1752. readonly NOTHING: "nothing";
  1753. readonly SPACE: "space";
  1754. readonly TAB: "tab";
  1755. };
  1756. declare const LineCap: {
  1757. readonly ROUND: "rnd";
  1758. readonly SQUARE: "sq";
  1759. readonly FLAT: "flat";
  1760. };
  1761. export declare const LineNumberRestartFormat: {
  1762. readonly NEW_PAGE: "newPage";
  1763. readonly NEW_SECTION: "newSection";
  1764. readonly CONTINUOUS: "continuous";
  1765. };
  1766. export declare const LineRuleType: {
  1767. readonly AT_LEAST: "atLeast";
  1768. readonly EXACTLY: "exactly";
  1769. readonly EXACT: "exact";
  1770. readonly AUTO: "auto";
  1771. };
  1772. export declare const longHexNumber: (val: string) => string;
  1773. declare class Math_2 extends XmlComponent {
  1774. constructor(options: IMathOptions);
  1775. }
  1776. export { Math_2 as Math }
  1777. declare type MathAccentCharacterOptions = {
  1778. readonly accent: string;
  1779. };
  1780. export declare class MathAngledBrackets extends XmlComponent {
  1781. constructor(options: MathAngledBracketsOptions);
  1782. }
  1783. declare type MathAngledBracketsOptions = {
  1784. readonly children: readonly MathComponent[];
  1785. };
  1786. declare type MathBaseOptions = {
  1787. readonly children: readonly MathComponent[];
  1788. };
  1789. export declare type MathComponent = MathRun | MathFraction | MathSum | MathIntegral | MathSuperScript | MathSubScript | MathSubSuperScript | MathRadical | MathFunction | MathRoundBrackets | MathCurlyBrackets | MathAngledBrackets | MathSquareBrackets;
  1790. export declare class MathCurlyBrackets extends XmlComponent {
  1791. constructor(options: {
  1792. readonly children: readonly MathComponent[];
  1793. });
  1794. }
  1795. export declare class MathDegree extends XmlComponent {
  1796. constructor(children?: readonly MathComponent[]);
  1797. }
  1798. export declare class MathDenominator extends XmlComponent {
  1799. constructor(children: readonly MathComponent[]);
  1800. }
  1801. export declare class MathFraction extends XmlComponent {
  1802. constructor(options: IMathFractionOptions);
  1803. }
  1804. export declare class MathFunction extends XmlComponent {
  1805. constructor(options: IMathFunctionOptions);
  1806. }
  1807. export declare class MathFunctionName extends XmlComponent {
  1808. constructor(children: readonly MathComponent[]);
  1809. }
  1810. export declare class MathFunctionProperties extends XmlComponent {
  1811. constructor();
  1812. }
  1813. export declare class MathIntegral extends XmlComponent {
  1814. constructor(options: IMathIntegralOptions);
  1815. }
  1816. export declare class MathLimit extends XmlComponent {
  1817. constructor(children: readonly MathComponent[]);
  1818. }
  1819. declare type MathLimitLocationOptions = {
  1820. readonly value?: string;
  1821. };
  1822. export declare class MathLimitLower extends XmlComponent {
  1823. constructor(options: IMathLimitLowerOptions);
  1824. }
  1825. export declare class MathLimitUpper extends XmlComponent {
  1826. constructor(options: IMathLimitUpperOptions);
  1827. }
  1828. declare type MathNAryPropertiesOptions = {
  1829. readonly accent: string;
  1830. readonly hasSuperScript: boolean;
  1831. readonly hasSubScript: boolean;
  1832. readonly limitLocationVal?: string;
  1833. };
  1834. export declare class MathNumerator extends XmlComponent {
  1835. constructor(children: readonly MathComponent[]);
  1836. }
  1837. export declare class MathPreSubSuperScript extends BuilderElement {
  1838. constructor({ children, subScript, superScript }: IMathPreSubSuperScriptOptions);
  1839. }
  1840. export declare class MathRadical extends XmlComponent {
  1841. constructor(options: IMathRadicalOptions);
  1842. }
  1843. export declare class MathRadicalProperties extends XmlComponent {
  1844. constructor(hasDegree: boolean);
  1845. }
  1846. export declare class MathRoundBrackets extends XmlComponent {
  1847. constructor(options: {
  1848. readonly children: readonly MathComponent[];
  1849. });
  1850. }
  1851. export declare class MathRun extends XmlComponent {
  1852. constructor(text: string);
  1853. }
  1854. export declare class MathSquareBrackets extends XmlComponent {
  1855. constructor(options: {
  1856. readonly children: readonly MathComponent[];
  1857. });
  1858. }
  1859. export declare class MathSubScript extends XmlComponent {
  1860. constructor(options: IMathSubScriptOptions);
  1861. }
  1862. declare type MathSubScriptElementOptions = {
  1863. readonly children: readonly MathComponent[];
  1864. };
  1865. export declare class MathSubSuperScript extends XmlComponent {
  1866. constructor(options: IMathSubSuperScriptOptions);
  1867. }
  1868. export declare class MathSum extends XmlComponent {
  1869. constructor(options: IMathSumOptions);
  1870. }
  1871. export declare class MathSuperScript extends XmlComponent {
  1872. constructor(options: IMathSuperScriptOptions);
  1873. }
  1874. declare type MathSuperScriptElementOptions = {
  1875. readonly children: readonly MathComponent[];
  1876. };
  1877. export declare const measurementOrPercentValue: (val: number | Percentage | UniversalMeasure) => number | UniversalMeasure | Percentage;
  1878. export declare class Media {
  1879. private readonly map;
  1880. constructor();
  1881. addImage(key: string, mediaData: IMediaData): void;
  1882. get Array(): readonly IMediaData[];
  1883. }
  1884. export declare class MonthLong extends EmptyElement {
  1885. constructor();
  1886. }
  1887. export declare class MonthShort extends EmptyElement {
  1888. constructor();
  1889. }
  1890. export declare class NextAttributeComponent<T extends AttributeData> extends BaseXmlComponent {
  1891. private readonly root;
  1892. constructor(root: AttributePayload<T>);
  1893. prepForXml(_: IContext): IXmlableObject;
  1894. }
  1895. export declare class NoBreakHyphen extends EmptyElement {
  1896. constructor();
  1897. }
  1898. export declare class NumberedItemReference extends SimpleField {
  1899. constructor(bookmarkId: string, cachedValue?: string, options?: INumberedItemReferenceOptions);
  1900. }
  1901. export declare enum NumberedItemReferenceFormat {
  1902. NONE = "none",
  1903. RELATIVE = "relative",
  1904. NO_CONTEXT = "no_context",
  1905. FULL_CONTEXT = "full_context"
  1906. }
  1907. export declare const NumberFormat: {
  1908. readonly DECIMAL: "decimal";
  1909. readonly UPPER_ROMAN: "upperRoman";
  1910. readonly LOWER_ROMAN: "lowerRoman";
  1911. readonly UPPER_LETTER: "upperLetter";
  1912. readonly LOWER_LETTER: "lowerLetter";
  1913. readonly ORDINAL: "ordinal";
  1914. readonly CARDINAL_TEXT: "cardinalText";
  1915. readonly ORDINAL_TEXT: "ordinalText";
  1916. readonly HEX: "hex";
  1917. readonly CHICAGO: "chicago";
  1918. readonly IDEOGRAPH_DIGITAL: "ideographDigital";
  1919. readonly JAPANESE_COUNTING: "japaneseCounting";
  1920. readonly AIUEO: "aiueo";
  1921. readonly IROHA: "iroha";
  1922. readonly DECIMAL_FULL_WIDTH: "decimalFullWidth";
  1923. readonly DECIMAL_HALF_WIDTH: "decimalHalfWidth";
  1924. readonly JAPANESE_LEGAL: "japaneseLegal";
  1925. readonly JAPANESE_DIGITAL_TEN_THOUSAND: "japaneseDigitalTenThousand";
  1926. readonly DECIMAL_ENCLOSED_CIRCLE: "decimalEnclosedCircle";
  1927. readonly DECIMAL_FULL_WIDTH_2: "decimalFullWidth2";
  1928. readonly AIUEO_FULL_WIDTH: "aiueoFullWidth";
  1929. readonly IROHA_FULL_WIDTH: "irohaFullWidth";
  1930. readonly DECIMAL_ZERO: "decimalZero";
  1931. readonly BULLET: "bullet";
  1932. readonly GANADA: "ganada";
  1933. readonly CHOSUNG: "chosung";
  1934. readonly DECIMAL_ENCLOSED_FULL_STOP: "decimalEnclosedFullstop";
  1935. readonly DECIMAL_ENCLOSED_PAREN: "decimalEnclosedParen";
  1936. readonly DECIMAL_ENCLOSED_CIRCLE_CHINESE: "decimalEnclosedCircleChinese";
  1937. readonly IDEOGRAPH_ENCLOSED_CIRCLE: "ideographEnclosedCircle";
  1938. readonly IDEOGRAPH_TRADITIONAL: "ideographTraditional";
  1939. readonly IDEOGRAPH_ZODIAC: "ideographZodiac";
  1940. readonly IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional";
  1941. readonly TAIWANESE_COUNTING: "taiwaneseCounting";
  1942. readonly IDEOGRAPH_LEGAL_TRADITIONAL: "ideographLegalTraditional";
  1943. readonly TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand";
  1944. readonly TAIWANESE_DIGITAL: "taiwaneseDigital";
  1945. readonly CHINESE_COUNTING: "chineseCounting";
  1946. readonly CHINESE_LEGAL_SIMPLIFIED: "chineseLegalSimplified";
  1947. readonly CHINESE_COUNTING_TEN_THOUSAND: "chineseCountingThousand";
  1948. readonly KOREAN_DIGITAL: "koreanDigital";
  1949. readonly KOREAN_COUNTING: "koreanCounting";
  1950. readonly KOREAN_LEGAL: "koreanLegal";
  1951. readonly KOREAN_DIGITAL_2: "koreanDigital2";
  1952. readonly VIETNAMESE_COUNTING: "vietnameseCounting";
  1953. readonly RUSSIAN_LOWER: "russianLower";
  1954. readonly RUSSIAN_UPPER: "russianUpper";
  1955. readonly NONE: "none";
  1956. readonly NUMBER_IN_DASH: "numberInDash";
  1957. readonly HEBREW_1: "hebrew1";
  1958. readonly HEBREW_2: "hebrew2";
  1959. readonly ARABIC_ALPHA: "arabicAlpha";
  1960. readonly ARABIC_ABJAD: "arabicAbjad";
  1961. readonly HINDI_VOWELS: "hindiVowels";
  1962. readonly HINDI_CONSONANTS: "hindiConsonants";
  1963. readonly HINDI_NUMBERS: "hindiNumbers";
  1964. readonly HINDI_COUNTING: "hindiCounting";
  1965. readonly THAI_LETTERS: "thaiLetters";
  1966. readonly THAI_NUMBERS: "thaiNumbers";
  1967. readonly THAI_COUNTING: "thaiCounting";
  1968. readonly BAHT_TEXT: "bahtText";
  1969. readonly DOLLAR_TEXT: "dollarText";
  1970. };
  1971. export declare class Numbering extends XmlComponent {
  1972. private readonly abstractNumberingMap;
  1973. private readonly concreteNumberingMap;
  1974. private readonly referenceConfigMap;
  1975. private readonly abstractNumUniqueNumericId;
  1976. private readonly concreteNumUniqueNumericId;
  1977. constructor(options: INumberingOptions);
  1978. prepForXml(context: IContext): IXmlableObject | undefined;
  1979. createConcreteNumberingInstance(reference: string, instance: number): void;
  1980. get ConcreteNumbering(): readonly ConcreteNumbering[];
  1981. get ReferenceConfig(): readonly Record<string, any>[];
  1982. }
  1983. export declare class NumberProperties extends XmlComponent {
  1984. constructor(numberId: number | string, indentLevel: number);
  1985. }
  1986. export declare class NumberValueElement extends XmlComponent {
  1987. constructor(name: string, val: number);
  1988. }
  1989. export declare class OnOffElement extends XmlComponent {
  1990. constructor(name: string, val?: boolean | undefined);
  1991. }
  1992. declare type OutlineAttributes = {
  1993. readonly width?: number;
  1994. readonly cap?: keyof typeof LineCap;
  1995. readonly compoundLine?: keyof typeof CompoundLine;
  1996. readonly align?: keyof typeof PenAlignment;
  1997. };
  1998. declare type OutlineFillProperties = OutlineNoFill | OutlineSolidFill;
  1999. declare type OutlineNoFill = {
  2000. readonly type: "noFill";
  2001. };
  2002. declare type OutlineOptions = OutlineAttributes & OutlineFillProperties;
  2003. declare type OutlineRgbSolidFill = {
  2004. readonly type: "solidFill";
  2005. readonly solidFillType: "rgb";
  2006. readonly value: string;
  2007. };
  2008. declare type OutlineSchemeSolidFill = {
  2009. readonly type: "solidFill";
  2010. readonly solidFillType: "scheme";
  2011. readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
  2012. };
  2013. declare type OutlineSolidFill = OutlineRgbSolidFill | OutlineSchemeSolidFill;
  2014. export declare type OutputByType = {
  2015. readonly base64: string;
  2016. readonly string: string;
  2017. readonly text: string;
  2018. readonly binarystring: string;
  2019. readonly array: readonly number[];
  2020. readonly uint8array: Uint8Array;
  2021. readonly arraybuffer: ArrayBuffer;
  2022. readonly blob: Blob;
  2023. readonly nodebuffer: Buffer;
  2024. };
  2025. export declare type OutputType = keyof OutputByType;
  2026. export declare const OverlapType: {
  2027. readonly NEVER: "never";
  2028. readonly OVERLAP: "overlap";
  2029. };
  2030. export declare class Packer {
  2031. static pack<T extends OutputType>(file: File_2, type: T, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<OutputByType[T]>;
  2032. static toString(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<string>;
  2033. static toBuffer(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<Buffer>;
  2034. static toBase64String(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<string>;
  2035. static toBlob(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<Blob>;
  2036. static toArrayBuffer(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<ArrayBuffer>;
  2037. static toStream(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Stream;
  2038. private static readonly compiler;
  2039. }
  2040. export declare const PageBorderDisplay: {
  2041. readonly ALL_PAGES: "allPages";
  2042. readonly FIRST_PAGE: "firstPage";
  2043. readonly NOT_FIRST_PAGE: "notFirstPage";
  2044. };
  2045. export declare const PageBorderOffsetFrom: {
  2046. readonly PAGE: "page";
  2047. readonly TEXT: "text";
  2048. };
  2049. export declare class PageBorders extends IgnoreIfEmptyXmlComponent {
  2050. constructor(options?: IPageBordersOptions);
  2051. }
  2052. export declare const PageBorderZOrder: {
  2053. readonly BACK: "back";
  2054. readonly FRONT: "front";
  2055. };
  2056. export declare class PageBreak extends Run {
  2057. constructor();
  2058. }
  2059. export declare class PageBreakBefore extends XmlComponent {
  2060. constructor();
  2061. }
  2062. export declare const PageNumber: {
  2063. readonly CURRENT: "CURRENT";
  2064. readonly TOTAL_PAGES: "TOTAL_PAGES";
  2065. readonly TOTAL_PAGES_IN_SECTION: "TOTAL_PAGES_IN_SECTION";
  2066. readonly CURRENT_SECTION: "SECTION";
  2067. };
  2068. export declare class PageNumberElement extends EmptyElement {
  2069. constructor();
  2070. }
  2071. export declare const PageNumberSeparator: {
  2072. readonly HYPHEN: "hyphen";
  2073. readonly PERIOD: "period";
  2074. readonly COLON: "colon";
  2075. readonly EM_DASH: "emDash";
  2076. readonly EN_DASH: "endash";
  2077. };
  2078. export declare const PageOrientation: {
  2079. readonly PORTRAIT: "portrait";
  2080. readonly LANDSCAPE: "landscape";
  2081. };
  2082. export declare class PageReference extends Run {
  2083. constructor(bookmarkId: string, options?: IPageReferenceOptions);
  2084. }
  2085. export declare class PageTextDirection extends XmlComponent {
  2086. constructor(value: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType]);
  2087. }
  2088. export declare const PageTextDirectionType: {
  2089. readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
  2090. readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
  2091. };
  2092. export declare class Paragraph extends FileChild {
  2093. private readonly properties;
  2094. constructor(options: string | IParagraphOptions);
  2095. prepForXml(context: IContext): IXmlableObject | undefined;
  2096. addRunToFront(run: Run): Paragraph;
  2097. }
  2098. 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;
  2099. declare type ParagraphPatch = {
  2100. readonly type: typeof PatchType.PARAGRAPH;
  2101. readonly children: readonly ParagraphChild[];
  2102. };
  2103. export declare class ParagraphProperties extends IgnoreIfEmptyXmlComponent {
  2104. private readonly numberingReferences;
  2105. constructor(options?: IParagraphPropertiesOptions);
  2106. push(item: XmlComponent): void;
  2107. prepForXml(context: IContext): IXmlableObject | undefined;
  2108. }
  2109. export declare class ParagraphPropertiesChange extends XmlComponent {
  2110. constructor(options: IParagraphPropertiesChangeOptions);
  2111. }
  2112. export declare class ParagraphPropertiesDefaults extends XmlComponent {
  2113. constructor(options?: IParagraphStylePropertiesOptions);
  2114. }
  2115. export declare class ParagraphRunProperties extends RunProperties {
  2116. constructor(options?: IParagraphRunPropertiesOptions);
  2117. }
  2118. export declare const patchDetector: ({ data }: PatchDetectorOptions) => Promise<readonly string[]>;
  2119. declare type PatchDetectorOptions = {
  2120. readonly data: InputDataType;
  2121. };
  2122. export declare const patchDocument: <T extends PatchDocumentOutputType = PatchDocumentOutputType>({ outputType, data, patches, keepOriginalStyles, placeholderDelimiters, recursive, }: PatchDocumentOptions<T>) => Promise<OutputByType[T]>;
  2123. export declare type PatchDocumentOptions<T extends PatchDocumentOutputType = PatchDocumentOutputType> = {
  2124. readonly outputType: T;
  2125. readonly data: InputDataType;
  2126. readonly patches: Readonly<Record<string, IPatch>>;
  2127. readonly keepOriginalStyles?: boolean;
  2128. readonly placeholderDelimiters?: Readonly<{
  2129. readonly start: string;
  2130. readonly end: string;
  2131. }>;
  2132. readonly recursive?: boolean;
  2133. };
  2134. export declare type PatchDocumentOutputType = OutputType;
  2135. export declare const PatchType: {
  2136. readonly DOCUMENT: "file";
  2137. readonly PARAGRAPH: "paragraph";
  2138. };
  2139. declare const PenAlignment: {
  2140. readonly CENTER: "ctr";
  2141. readonly INSET: "in";
  2142. };
  2143. export declare type Percentage = `${"-" | ""}${number}%`;
  2144. export declare const percentageValue: (val: Percentage) => Percentage;
  2145. export declare const pointMeasureValue: (val: number) => number;
  2146. export declare class PositionalTab extends XmlComponent {
  2147. constructor(options: PositionalTabOptions);
  2148. }
  2149. export declare const PositionalTabAlignment: {
  2150. readonly LEFT: "left";
  2151. readonly CENTER: "center";
  2152. readonly RIGHT: "right";
  2153. };
  2154. export declare const PositionalTabLeader: {
  2155. readonly NONE: "none";
  2156. readonly DOT: "dot";
  2157. readonly HYPHEN: "hyphen";
  2158. readonly UNDERSCORE: "underscore";
  2159. readonly MIDDLE_DOT: "middleDot";
  2160. };
  2161. export declare type PositionalTabOptions = {
  2162. readonly alignment: (typeof PositionalTabAlignment)[keyof typeof PositionalTabAlignment];
  2163. readonly relativeTo: (typeof PositionalTabRelativeTo)[keyof typeof PositionalTabRelativeTo];
  2164. readonly leader: (typeof PositionalTabLeader)[keyof typeof PositionalTabLeader];
  2165. };
  2166. export declare const PositionalTabRelativeTo: {
  2167. readonly MARGIN: "margin";
  2168. readonly INDENT: "indent";
  2169. };
  2170. export declare type PositivePercentage = `${number}%`;
  2171. export declare type PositiveUniversalMeasure = `${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi"}`;
  2172. export declare const positiveUniversalMeasureValue: (val: PositiveUniversalMeasure) => PositiveUniversalMeasure;
  2173. export declare const PrettifyType: {
  2174. readonly NONE: "";
  2175. readonly WITH_2_BLANKS: " ";
  2176. readonly WITH_4_BLANKS: " ";
  2177. readonly WITH_TAB: "\t";
  2178. };
  2179. declare type RegularImageOptions = {
  2180. readonly type: "jpg" | "png" | "gif" | "bmp";
  2181. readonly data: Buffer | string | Uint8Array | ArrayBuffer;
  2182. };
  2183. declare type RegularMediaData = {
  2184. readonly type: "jpg" | "png" | "gif" | "bmp";
  2185. };
  2186. declare class Relationships extends XmlComponent {
  2187. constructor();
  2188. addRelationship(id: number | string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]): void;
  2189. get RelationshipCount(): number;
  2190. }
  2191. 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";
  2192. export declare const RelativeHorizontalPosition: {
  2193. readonly CENTER: "center";
  2194. readonly INSIDE: "inside";
  2195. readonly LEFT: "left";
  2196. readonly OUTSIDE: "outside";
  2197. readonly RIGHT: "right";
  2198. };
  2199. export declare type RelativeMeasure = `${"-" | ""}${number}${"em" | "ex"}`;
  2200. export declare const RelativeVerticalPosition: {
  2201. readonly CENTER: "center";
  2202. readonly INSIDE: "inside";
  2203. readonly BOTTOM: "bottom";
  2204. readonly OUTSIDE: "outside";
  2205. readonly INLINE: "inline";
  2206. readonly TOP: "top";
  2207. };
  2208. declare type RgbColorOptions = {
  2209. readonly type: "rgb";
  2210. readonly value: string;
  2211. };
  2212. export declare class Run extends XmlComponent {
  2213. protected readonly properties: RunProperties;
  2214. constructor(options: IRunOptions);
  2215. }
  2216. export declare class RunProperties extends IgnoreIfEmptyXmlComponent {
  2217. constructor(options?: IRunPropertiesOptions);
  2218. push(item: XmlComponent): void;
  2219. }
  2220. export declare class RunPropertiesChange extends XmlComponent {
  2221. constructor(options: IRunPropertiesChangeOptions);
  2222. }
  2223. export declare class RunPropertiesDefaults extends XmlComponent {
  2224. constructor(options?: IRunStylePropertiesOptions);
  2225. }
  2226. declare const SchemeColor: {
  2227. readonly BG1: "bg1";
  2228. readonly TX1: "tx1";
  2229. readonly BG2: "bg2";
  2230. readonly TX2: "tx2";
  2231. readonly ACCENT1: "accent1";
  2232. readonly ACCENT2: "accent2";
  2233. readonly ACCENT3: "accent3";
  2234. readonly ACCENT4: "accent4";
  2235. readonly ACCENT5: "accent5";
  2236. readonly ACCENT6: "accent6";
  2237. readonly HLINK: "hlink";
  2238. readonly FOLHLINK: "folHlink";
  2239. readonly DK1: "dk1";
  2240. readonly LT1: "lt1";
  2241. readonly DK2: "dk2";
  2242. readonly LT2: "lt2";
  2243. readonly PHCLR: "phClr";
  2244. };
  2245. declare type SchemeColorOptions = {
  2246. readonly type: "scheme";
  2247. readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
  2248. };
  2249. export declare const sectionMarginDefaults: {
  2250. TOP: number;
  2251. RIGHT: number;
  2252. BOTTOM: number;
  2253. LEFT: number;
  2254. HEADER: number;
  2255. FOOTER: number;
  2256. GUTTER: number;
  2257. };
  2258. export declare const sectionPageSizeDefaults: {
  2259. WIDTH: number;
  2260. HEIGHT: number;
  2261. ORIENTATION: "portrait";
  2262. };
  2263. export declare class SectionProperties extends XmlComponent {
  2264. 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);
  2265. private addHeaderFooterGroup;
  2266. }
  2267. export declare class SectionPropertiesChange extends XmlComponent {
  2268. constructor(options: ISectionPropertiesChangeOptions);
  2269. }
  2270. export declare const SectionType: {
  2271. readonly NEXT_PAGE: "nextPage";
  2272. readonly NEXT_COLUMN: "nextColumn";
  2273. readonly CONTINUOUS: "continuous";
  2274. readonly EVEN_PAGE: "evenPage";
  2275. readonly ODD_PAGE: "oddPage";
  2276. };
  2277. export declare type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
  2278. export declare class Separator extends EmptyElement {
  2279. constructor();
  2280. }
  2281. export declare class SequentialIdentifier extends Run {
  2282. constructor(identifier: string);
  2283. }
  2284. declare class Settings extends XmlComponent {
  2285. constructor(options: ISettingsOptions);
  2286. }
  2287. export declare const ShadingType: {
  2288. readonly CLEAR: "clear";
  2289. readonly DIAGONAL_CROSS: "diagCross";
  2290. readonly DIAGONAL_STRIPE: "diagStripe";
  2291. readonly HORIZONTAL_CROSS: "horzCross";
  2292. readonly HORIZONTAL_STRIPE: "horzStripe";
  2293. readonly NIL: "nil";
  2294. readonly PERCENT_5: "pct5";
  2295. readonly PERCENT_10: "pct10";
  2296. readonly PERCENT_12: "pct12";
  2297. readonly PERCENT_15: "pct15";
  2298. readonly PERCENT_20: "pct20";
  2299. readonly PERCENT_25: "pct25";
  2300. readonly PERCENT_30: "pct30";
  2301. readonly PERCENT_35: "pct35";
  2302. readonly PERCENT_37: "pct37";
  2303. readonly PERCENT_40: "pct40";
  2304. readonly PERCENT_45: "pct45";
  2305. readonly PERCENT_50: "pct50";
  2306. readonly PERCENT_55: "pct55";
  2307. readonly PERCENT_60: "pct60";
  2308. readonly PERCENT_62: "pct62";
  2309. readonly PERCENT_65: "pct65";
  2310. readonly PERCENT_70: "pct70";
  2311. readonly PERCENT_75: "pct75";
  2312. readonly PERCENT_80: "pct80";
  2313. readonly PERCENT_85: "pct85";
  2314. readonly PERCENT_87: "pct87";
  2315. readonly PERCENT_90: "pct90";
  2316. readonly PERCENT_95: "pct95";
  2317. readonly REVERSE_DIAGONAL_STRIPE: "reverseDiagStripe";
  2318. readonly SOLID: "solid";
  2319. readonly THIN_DIAGONAL_CROSS: "thinDiagCross";
  2320. readonly THIN_DIAGONAL_STRIPE: "thinDiagStripe";
  2321. readonly THIN_HORIZONTAL_CROSS: "thinHorzCross";
  2322. readonly THIN_REVERSE_DIAGONAL_STRIPE: "thinReverseDiagStripe";
  2323. readonly THIN_VERTICAL_STRIPE: "thinVertStripe";
  2324. readonly VERTICAL_STRIPE: "vertStripe";
  2325. };
  2326. export declare const shortHexNumber: (val: string) => string;
  2327. export declare const signedHpsMeasureValue: (val: UniversalMeasure | number) => string | number;
  2328. export declare const signedTwipsMeasureValue: (val: UniversalMeasure | number) => UniversalMeasure | number;
  2329. export declare class SimpleField extends XmlComponent {
  2330. constructor(instruction: string, cachedValue?: string);
  2331. }
  2332. export declare class SimpleMailMergeField extends SimpleField {
  2333. constructor(fieldName: string);
  2334. }
  2335. export declare class SoftHyphen extends EmptyElement {
  2336. constructor();
  2337. }
  2338. declare type SolidFillOptions = RgbColorOptions | SchemeColorOptions;
  2339. export declare const SpaceType: {
  2340. readonly DEFAULT: "default";
  2341. readonly PRESERVE: "preserve";
  2342. };
  2343. export declare const standardizeData: (data: string | Buffer | Uint8Array | ArrayBuffer) => Buffer | Uint8Array | ArrayBuffer;
  2344. export declare class StringContainer extends XmlComponent {
  2345. constructor(name: string, val: string);
  2346. }
  2347. export declare class StringEnumValueElement<T extends string> extends XmlComponent {
  2348. constructor(name: string, val: T);
  2349. }
  2350. export declare class StringValueElement extends XmlComponent {
  2351. constructor(name: string, val: string);
  2352. }
  2353. declare class Style extends XmlComponent {
  2354. constructor(attributes: IStyleAttributes, options: IStyleOptions);
  2355. }
  2356. export declare class StyleForCharacter extends Style {
  2357. private readonly runProperties;
  2358. constructor(options: ICharacterStyleOptions);
  2359. }
  2360. export declare class StyleForParagraph extends Style {
  2361. private readonly paragraphProperties;
  2362. private readonly runProperties;
  2363. constructor(options: IParagraphStyleOptions);
  2364. }
  2365. export declare class StyleLevel {
  2366. readonly styleName: string;
  2367. readonly level: number;
  2368. constructor(styleName: string, level: number);
  2369. }
  2370. export declare class Styles extends XmlComponent {
  2371. constructor(options: IStylesOptions);
  2372. }
  2373. declare type SvgMediaData = {
  2374. readonly type: "svg";
  2375. readonly fallback: RegularMediaData & CoreMediaData;
  2376. };
  2377. declare type SvgMediaOptions = {
  2378. readonly type: "svg";
  2379. readonly data: Buffer | string | Uint8Array | ArrayBuffer;
  2380. readonly fallback: RegularImageOptions;
  2381. };
  2382. export declare class SymbolRun extends Run {
  2383. constructor(options: ISymbolRunOptions | string);
  2384. }
  2385. export declare class Tab extends EmptyElement {
  2386. constructor();
  2387. }
  2388. export declare class Table extends FileChild {
  2389. constructor({ rows, width, columnWidths, columnWidthsRevision, margins, indent, float, layout, style, borders, alignment, visuallyRightToLeft, tableLook, cellSpacing, revision, }: ITableOptions);
  2390. }
  2391. export declare const TableAnchorType: {
  2392. readonly MARGIN: "margin";
  2393. readonly PAGE: "page";
  2394. readonly TEXT: "text";
  2395. };
  2396. export declare class TableBorders extends XmlComponent {
  2397. static readonly NONE: ITableBordersOptions;
  2398. constructor(options: ITableBordersOptions);
  2399. }
  2400. export declare class TableCell extends XmlComponent {
  2401. readonly options: ITableCellOptions;
  2402. constructor(options: ITableCellOptions);
  2403. prepForXml(context: IContext): IXmlableObject | undefined;
  2404. }
  2405. export declare class TableCellBorders extends IgnoreIfEmptyXmlComponent {
  2406. constructor(options: ITableCellBorders);
  2407. }
  2408. export declare const TableLayoutType: {
  2409. readonly AUTOFIT: "autofit";
  2410. readonly FIXED: "fixed";
  2411. };
  2412. export declare class TableOfContents extends FileChild {
  2413. constructor(alias?: string, { contentChildren, cachedEntries, beginDirty, ...properties }?: ITableOfContentsOptions & {
  2414. readonly contentChildren?: readonly (XmlComponent | string)[];
  2415. readonly cachedEntries?: readonly ToCEntry[];
  2416. readonly beginDirty?: boolean;
  2417. });
  2418. private getTabStopsForLevel;
  2419. private buildCachedContentRun;
  2420. private buildCachedContentParagraphChild;
  2421. }
  2422. export declare class TableProperties extends IgnoreIfEmptyXmlComponent {
  2423. constructor(options: ITablePropertiesOptions);
  2424. }
  2425. export declare class TableRow extends XmlComponent {
  2426. private readonly options;
  2427. constructor(options: ITableRowOptions);
  2428. get CellCount(): number;
  2429. get cells(): readonly TableCell[];
  2430. addCellToIndex(cell: TableCell, index: number): void;
  2431. addCellToColumnIndex(cell: TableCell, columnIndex: number): void;
  2432. rootIndexToColumnIndex(rootIndex: number): number;
  2433. columnIndexToRootIndex(columnIndex: number, allowEndNewCell?: boolean): number;
  2434. }
  2435. export declare class TableRowProperties extends IgnoreIfEmptyXmlComponent {
  2436. constructor(options: ITableRowPropertiesOptions);
  2437. }
  2438. export declare class TableRowPropertiesChange extends XmlComponent {
  2439. constructor(options: ITableRowPropertiesChangeOptions);
  2440. }
  2441. export declare type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
  2442. export declare type TabStopDefinition = {
  2443. readonly type: (typeof TabStopType)[keyof typeof TabStopType];
  2444. readonly position: number | (typeof TabStopPosition)[keyof typeof TabStopPosition];
  2445. readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
  2446. };
  2447. export declare const TabStopPosition: {
  2448. readonly MAX: 9026;
  2449. };
  2450. export declare const TabStopType: {
  2451. readonly LEFT: "left";
  2452. readonly RIGHT: "right";
  2453. readonly CENTER: "center";
  2454. readonly BAR: "bar";
  2455. readonly CLEAR: "clear";
  2456. readonly DECIMAL: "decimal";
  2457. readonly END: "end";
  2458. readonly NUM: "num";
  2459. readonly START: "start";
  2460. };
  2461. declare const TargetModeType: {
  2462. readonly EXTERNAL: "External";
  2463. };
  2464. export declare class TDirection extends XmlComponent {
  2465. constructor(value: (typeof TextDirection)[keyof typeof TextDirection]);
  2466. }
  2467. export declare class Textbox extends FileChild {
  2468. constructor({ style, children, ...rest }: ITextboxOptions);
  2469. }
  2470. export declare const TextDirection: {
  2471. readonly BOTTOM_TO_TOP_LEFT_TO_RIGHT: "btLr";
  2472. readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
  2473. readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
  2474. };
  2475. export declare const TextEffect: {
  2476. readonly BLINK_BACKGROUND: "blinkBackground";
  2477. readonly LIGHTS: "lights";
  2478. readonly ANTS_BLACK: "antsBlack";
  2479. readonly ANTS_RED: "antsRed";
  2480. readonly SHIMMER: "shimmer";
  2481. readonly SPARKLE: "sparkle";
  2482. readonly NONE: "none";
  2483. };
  2484. export declare class TextRun extends Run {
  2485. constructor(options: IRunOptions | string);
  2486. }
  2487. export declare const TextWrappingSide: {
  2488. readonly BOTH_SIDES: "bothSides";
  2489. readonly LEFT: "left";
  2490. readonly RIGHT: "right";
  2491. readonly LARGEST: "largest";
  2492. };
  2493. export declare const TextWrappingType: {
  2494. readonly NONE: 0;
  2495. readonly SQUARE: 1;
  2496. readonly TIGHT: 2;
  2497. readonly TOP_AND_BOTTOM: 3;
  2498. };
  2499. export declare class ThematicBreak extends XmlComponent {
  2500. constructor();
  2501. }
  2502. declare type ToCEntry = {
  2503. readonly title: string;
  2504. readonly level: number;
  2505. readonly page?: number;
  2506. readonly href?: string;
  2507. };
  2508. export declare const twipsMeasureValue: (val: PositiveUniversalMeasure | number) => PositiveUniversalMeasure | number;
  2509. export declare const uCharHexNumber: (val: string) => string;
  2510. export declare const UnderlineType: {
  2511. readonly SINGLE: "single";
  2512. readonly WORDS: "words";
  2513. readonly DOUBLE: "double";
  2514. readonly THICK: "thick";
  2515. readonly DOTTED: "dotted";
  2516. readonly DOTTEDHEAVY: "dottedHeavy";
  2517. readonly DASH: "dash";
  2518. readonly DASHEDHEAVY: "dashedHeavy";
  2519. readonly DASHLONG: "dashLong";
  2520. readonly DASHLONGHEAVY: "dashLongHeavy";
  2521. readonly DOTDASH: "dotDash";
  2522. readonly DASHDOTHEAVY: "dashDotHeavy";
  2523. readonly DOTDOTDASH: "dotDotDash";
  2524. readonly DASHDOTDOTHEAVY: "dashDotDotHeavy";
  2525. readonly WAVE: "wave";
  2526. readonly WAVYHEAVY: "wavyHeavy";
  2527. readonly WAVYDOUBLE: "wavyDouble";
  2528. readonly NONE: "none";
  2529. };
  2530. export declare const uniqueId: () => string;
  2531. export declare type UniqueNumericIdCreator = () => number;
  2532. export declare const uniqueNumericIdCreator: (initial?: number) => UniqueNumericIdCreator;
  2533. export declare const uniqueUuid: () => string;
  2534. export declare type UniversalMeasure = `${"-" | ""}${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi"}`;
  2535. export declare const universalMeasureValue: (val: UniversalMeasure) => UniversalMeasure;
  2536. export declare const unsignedDecimalNumber: (val: number) => number;
  2537. export declare const VerticalAlign: {
  2538. readonly BOTH: "both";
  2539. readonly TOP: "top";
  2540. readonly CENTER: "center";
  2541. readonly BOTTOM: "bottom";
  2542. };
  2543. export declare const VerticalAlignSection: {
  2544. readonly BOTH: "both";
  2545. readonly TOP: "top";
  2546. readonly CENTER: "center";
  2547. readonly BOTTOM: "bottom";
  2548. };
  2549. export declare const VerticalAlignTable: {
  2550. readonly TOP: "top";
  2551. readonly CENTER: "center";
  2552. readonly BOTTOM: "bottom";
  2553. };
  2554. export declare enum VerticalAnchor {
  2555. CENTER = "ctr",
  2556. TOP = "t",
  2557. BOTTOM = "b"
  2558. }
  2559. export declare class VerticalMerge extends XmlComponent {
  2560. constructor(value: (typeof VerticalMergeType)[keyof typeof VerticalMergeType]);
  2561. }
  2562. export declare const VerticalMergeRevisionType: {
  2563. readonly CONTINUE: "cont";
  2564. readonly RESTART: "rest";
  2565. };
  2566. export declare const VerticalMergeType: {
  2567. readonly CONTINUE: "continue";
  2568. readonly RESTART: "restart";
  2569. };
  2570. export declare const VerticalPositionAlign: {
  2571. readonly BOTTOM: "bottom";
  2572. readonly CENTER: "center";
  2573. readonly INSIDE: "inside";
  2574. readonly OUTSIDE: "outside";
  2575. readonly TOP: "top";
  2576. };
  2577. export declare const VerticalPositionRelativeFrom: {
  2578. readonly BOTTOM_MARGIN: "bottomMargin";
  2579. readonly INSIDE_MARGIN: "insideMargin";
  2580. readonly LINE: "line";
  2581. readonly MARGIN: "margin";
  2582. readonly OUTSIDE_MARGIN: "outsideMargin";
  2583. readonly PAGE: "page";
  2584. readonly PARAGRAPH: "paragraph";
  2585. readonly TOP_MARGIN: "topMargin";
  2586. };
  2587. declare type VmlShapeStyle = {
  2588. readonly flip?: "x" | "y" | "xy" | "yx";
  2589. readonly height?: LengthUnit;
  2590. readonly left?: LengthUnit;
  2591. readonly marginBottom?: LengthUnit;
  2592. readonly marginLeft?: LengthUnit;
  2593. readonly marginRight?: LengthUnit;
  2594. readonly marginTop?: LengthUnit;
  2595. readonly positionHorizontal?: "absolute" | "left" | "center" | "right" | "inside" | "outside";
  2596. readonly positionHorizontalRelative?: "margin" | "page" | "text" | "char";
  2597. readonly positionVertical?: "absolute" | "left" | "center" | "right" | "inside" | "outside";
  2598. readonly positionVerticalRelative?: "margin" | "page" | "text" | "char";
  2599. readonly wrapDistanceBottom?: number;
  2600. readonly wrapDistanceLeft?: number;
  2601. readonly wrapDistanceRight?: number;
  2602. readonly wrapDistanceTop?: number;
  2603. readonly wrapEdited?: boolean;
  2604. readonly wrapStyle?: "square" | "none";
  2605. readonly position?: "static" | "absolute" | "relative";
  2606. readonly rotation?: number;
  2607. readonly top?: LengthUnit;
  2608. readonly visibility?: "hidden" | "inherit";
  2609. readonly width: LengthUnit;
  2610. readonly zIndex?: "auto" | number;
  2611. };
  2612. export declare const WidthType: {
  2613. readonly AUTO: "auto";
  2614. readonly DXA: "dxa";
  2615. readonly NIL: "nil";
  2616. readonly PERCENTAGE: "pct";
  2617. };
  2618. export declare const WORKAROUND2 = "";
  2619. export declare const WORKAROUND3 = "";
  2620. export declare const WORKAROUND4 = "";
  2621. export declare type WpgCommonMediaData = {
  2622. readonly outline?: OutlineOptions;
  2623. readonly solidFill?: SolidFillOptions;
  2624. };
  2625. export declare class WpgGroupRun extends Run {
  2626. private readonly wpgGroupData;
  2627. private readonly mediaDatas;
  2628. constructor(options: IWpgGroupOptions);
  2629. prepForXml(context: IContext): IXmlableObject | undefined;
  2630. }
  2631. export declare type WpgMediaData = {
  2632. readonly type: "wpg";
  2633. readonly transformation: IMediaDataTransformation;
  2634. readonly children: readonly IGroupChildMediaData[];
  2635. };
  2636. export declare type WpsMediaData = {
  2637. readonly type: "wps";
  2638. readonly transformation: IMediaDataTransformation;
  2639. readonly data: WpsShapeCoreOptions;
  2640. };
  2641. declare type WpsShapeCoreOptions = {
  2642. readonly children: readonly Paragraph[];
  2643. readonly nonVisualProperties?: INonVisualShapePropertiesOptions;
  2644. readonly bodyProperties?: IBodyPropertiesOptions;
  2645. };
  2646. export declare class WpsShapeRun extends Run {
  2647. private readonly wpsShapeData;
  2648. constructor(options: IWpsShapeOptions);
  2649. }
  2650. export declare abstract class XmlAttributeComponent<T extends Record<string, any>> extends BaseXmlComponent {
  2651. private readonly root;
  2652. protected readonly xmlKeys?: AttributeMap<T>;
  2653. constructor(root: T);
  2654. prepForXml(_: IContext): IXmlableObject;
  2655. }
  2656. export declare abstract class XmlComponent extends BaseXmlComponent {
  2657. protected root: (BaseXmlComponent | string | any)[];
  2658. constructor(rootKey: string);
  2659. prepForXml(context: IContext): IXmlableObject | undefined;
  2660. addChildElement(child: XmlComponent | string): XmlComponent;
  2661. }
  2662. export declare class YearLong extends EmptyElement {
  2663. constructor();
  2664. }
  2665. export declare class YearShort extends EmptyElement {
  2666. constructor();
  2667. }
  2668. export { }