> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Types: OfficeJS: Text and formatting

## `Alignment`

Runtime enum-shaped objects matching the Word JavaScript API exactly.

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type Alignment = typeof Alignment[keyof typeof Alignment]
```

## `BorderChange`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `color?` | `string` | |
| `sizePt?` | `number` | |
| `style?` | `string \| false` | |

## `BorderLocation`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type BorderLocation = "Top" | "Left" | "Bottom" | "Right" | "InsideHorizontal" | "InsideVertical" | "Inside" | "Outside" | "All"
```

## `BorderResolution`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `edges` | `CellEdges` | |
| `stylesRoot` | `XElement \| undefined` | |
| `table` | `XElement` | |

## `BorderTarget`

Where a border collection finds its sides. A `w:style` is one host; a
`w:tblStylePr` conditional block is another, and supplies its own target.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `locations` | `readonly StyleBorderLocation[]` | Addressable locations, in the office.js items order. |
| `assertLive()` | `() => void` | |
| `edit()` | `(location: StyleBorderLocation, change: StyleBorderEdit) => void` | |
| `side()` | `(location: StyleBorderLocation) => XElement \| undefined` | |

## `BorderType`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type BorderType = "Mixed" | "None" | "Single" | "Double" | "Dotted" | "Dashed" | "DotDashed" | "Dot2Dashed" | "Triple" | "ThinThickSmall" | "ThickThinSmall" | "ThinThickThinSmall" | "ThinThickMed" | "ThickThinMed" | "ThinThickThinMed" | "ThinThickLarge" | "ThickThinLarge" | "ThinThickThinLarge" | "Wave" | "DoubleWave" | "DashedSmall" | "DashDotStroked" | "ThreeDEmboss" | "ThreeDEngrave" | "Inset" | "Outset"
```

## `BorderUniversalUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type BorderUniversalUpdateData = WritableProperties<BorderUniversal>
```

## `BorderUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type BorderUpdateData = WritableProperties<Border>
```

## `BorderWidth`

Word.BorderWidth: eighth-point border weights, plus the two sentinels.

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type BorderWidth = typeof BorderWidth[keyof typeof BorderWidth]
```

## `CharacterCase`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type CharacterCase = "Next" | "Lower" | "Upper" | "TitleWord" | "TitleSentence" | "Toggle" | "HalfWidth" | "FullWidth" | "Katakana" | "Hiragana"
```

## `ColorFormatUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type ColorFormatUpdateData = WritableProperties<ColorFormat>
```

## `ColorIndexValue`

Not exported by name. You get it from the API.

```ts theme={null}
type ColorIndexValue = "Auto" | "Black" | "Blue" | "Turquoise" | "BrightGreen" | "Pink" | "Red" | "Yellow" | "White" | "DarkBlue" | "Teal" | "Green" | "Violet" | "DarkRed" | "DarkYellow" | "Gray50" | "Gray25" | "ClassicRed" | "ClassicBlue" | "ByAuthor"
```

## `ConvertToTableOptions`

Import from `@reductoai/docx/officejs`.

| Name | Type | Description |
| - | - | - |
| `separator?` | `TableFieldSeparator` | |

## `DocumentStyle`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

| Name | Type | Description |
| - | - | - |
| `aliases?` | `string[]` | `w:aliases` entries: alternative names Word accepts for this style. |
| `id` | `string` | |
| `name?` | `string` | |
| `type` | `DocumentStyleKind` | |

## `DocumentStyleKind`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type DocumentStyleKind = "paragraph" | "character" | "table" | "numbering"
```

## `DropCapOptions`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `distancePt?` | `number` | Clearance from the text beside it. |
| `font?` | `string` | The letter's font; default the text's. |
| `lines?` | `number` | Body lines the letter spans, 1 through 10; default 3 or the current drop's. |
| `position` | `"none" \| "drop" \| "margin"` | |

## `DropCapState`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `distancePt` | `number` | |
| `lines` | `number` | |
| `position` | `"drop" \| "margin"` | |

## `DropCapUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type DropCapUpdateData = Partial<WritableProperties<DropCap>>
```

## `EmphasisMark`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type EmphasisMark = typeof EmphasisMark[keyof typeof EmphasisMark]
```

## `FontDeclaration`

A w:font entry's description, which Word and the renderer use to pick a stand-in for a missing font.

Import from `@reductoai/docx/officejs`.

| Name | Type | Description |
| - | - | - |
| `altName?` | `string` | |
| `charset?` | `string` | Windows character set, one hex byte ("00" ANSI, "02" symbol, "80" Shift-JIS). |
| `family?` | `"roman" \| "swiss" \| "modern" \| "script" \| "decorative" \| "auto"` | |
| `notTrueType?` | `boolean` | |
| `panose?` | `string` | PANOSE-1 classification, 20 hex digits. |
| `pitch?` | `"default" \| "fixed" \| "variable"` | |
| `signature?` | `{ csb0: string; csb1: string; usb0: string; usb1: string; usb2: string; usb3: string }` | Unicode and code page coverage bits (w:sig), each a hex word. |

## `FontSetFormat`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type FontSetFormat = Omit<RunFormat, "underline" | "emphasisMark" | "ligature" | "numberForm" | "numberSpacing" | "stylisticSet" | "characterStyle" | "complexScript"> & OfficeFontFormat
```

## `HeadingStyleUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type HeadingStyleUpdateData = WritableProperties<HeadingStyle>
```

## `HighlightColor`

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`, `@reductoai/docx/node`.

```ts theme={null}
type HighlightColor = typeof HIGHLIGHT_COLORS[number]
```

## `HorizontalAlignment`

Not exported by name. You get it from the API.

```ts theme={null}
type HorizontalAlignment = typeof H_ALIGNMENTS[number]
```

## `InsertParagraphOptions`

Import from `@reductoai/docx/node`.

```ts theme={null}
type InsertParagraphOptions = RunFormat & { format?: "clone" | "plain"; reuseBlankAnchor?: boolean; text: string }
```

## `InsertTableOptions`

Import from `@reductoai/docx/node`.

```ts theme={null}
type InsertTableOptions = RunFormat & { borders?: boolean; columnWidthsPt?: number[]; format?: "clone" | "plain"; rows: string[][] }
```

## `JustificationMode`

Not exported by name. You get it from the API.

```ts theme={null}
type JustificationMode = "Expand" | "Compress" | "CompressKana"
```

## `LetterCase`

Not exported by name. You get it from the API.

```ts theme={null}
type LetterCase = "lower" | "upper" | "title" | "sentence" | "toggle"
```

## `LevelFontOptions`

Marker run formatting; every member also takes null to remove it.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `bold?` | `boolean \| null` | |
| `color?` | `string \| null` | |
| `italic?` | `boolean \| null` | |
| `name?` | `string \| null` | |
| `size?` | `number \| null` | |

## `Ligature`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type Ligature = typeof Ligature[keyof typeof Ligature]
```

## `LigatureValue`

Not exported by name. You get it from the API.

```ts theme={null}
type LigatureValue = typeof LIGATURE_VALUES[number]
```

## `LineSpacingRule`

Word's Line spacing dropdown; Single, 1.5 lines and Double are Multiple values.

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type LineSpacingRule = "Multiple" | "Exactly" | "AtLeast"
```

## `LineSpacingSpec`

One `w:spacing` line write: the rule and its value in the unit that rule reads.

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type LineSpacingSpec = { points: number; rule: "Exactly" } | { points: number; rule: "AtLeast" } | { multiple: number; rule: "Multiple" }
```

## `OfficeFontFormat`

OfficeJS Word.Font property spellings, accepted by font.set alongside RunFormat.

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

| Name | Type | Description |
| - | - | - |
| `allCaps?` | `boolean \| null` | |
| `contextualAlternates?` | `boolean` | |
| `disableCharacterSpaceGrid?` | `boolean` | |
| `doubleStrikeThrough?` | `boolean \| null` | |
| `emphasisMark?` | `EmphasisMark \| RunFormat["emphasisMark"]` | |
| `highlightColor?` | `HighlightColor \| string \| null` | |
| `kerning?` | `number` | |
| `ligature?` | `Ligature \| RunFormat["ligature"]` | |
| `name?` | `string \| null` | |
| `numberForm?` | `NumberForm \| RunFormat["numberForm"]` | |
| `numberSpacing?` | `NumberSpacing \| RunFormat["numberSpacing"]` | |
| `position?` | `number` | |
| `size?` | `number \| null` | |
| `spacing?` | `number` | |
| `strikeThrough?` | `boolean \| null` | |
| `stylisticSet?` | `StylisticSet \| RunFormat["stylisticSet"]` | |
| `subscript?` | `boolean \| null` | |
| `superscript?` | `boolean \| null` | |
| `underline?` | `UnderlineType \| RunFormat["underline"]` | |
| `underlineColor?` | `string` | |

## `OfficeRunFormat`

Core format bag widened with OfficeJS underline enum spellings at OfficeJS boundaries.

Not exported by name. You get it from the API.

```ts theme={null}
type OfficeRunFormat<T extends RunFormat> = Omit<T, "underline" | "complexScript"> & { underline?: UnderlineType | RunFormat["underline"] }
```

## `OfficeRunFormatInput`

Explicitly request unformatted text without spelling the low-level reset flag.

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type OfficeRunFormatInput<T extends RunFormat> = OfficeRunFormat<T> | "plain"
```

## `ParagraphAlignment`

Import from `@reductoai/docx/node`.

```ts theme={null}
type ParagraphAlignment = typeof PARAGRAPH_ALIGNMENTS[number]
```

## `ParagraphBorderLocation`

The locations a paragraph border collection carries, in the VBA order.

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type ParagraphBorderLocation = "Top" | "Left" | "Bottom" | "Right" | "InsideHorizontal"
```

## `ParagraphBorders`

Per-side direct borders (`w:pBdr`); false on a side writes `w:val="none"` over a style border.

Not exported by name. You get it from the API.

```ts theme={null}
type ParagraphBorders = Partial<Record<ParagraphBorderSide, CellBorder | false>>
```

## `ParagraphBorderSide`

Not exported by name. You get it from the API.

```ts theme={null}
type ParagraphBorderSide = typeof PARAGRAPH_BORDER_SIDES[number]
```

## `ParagraphChromeScope`

Every paragraph one chrome handle covers; re-resolved, and liveness-checked, per member.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `ctx` | `FacadeContext` | |
| `paragraphs()` | `() => XElement[]` | Asserts liveness, then gives the covered paragraphs in document order. |

## `ParagraphCollectionItem`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `spaceAfter` | `number \| undefined` | |
| `spaceBefore` | `number \| undefined` | |
| `closeUp()` | `() => void` | |
| `indent()` | `() => void` | |
| `indentCharacterWidth()` | `(count: number) => void` | |
| `indentFirstLineCharacterWidth()` | `(count: number) => void` | |
| `openOrCloseUp()` | `() => void` | |
| `openUp()` | `() => void` | |
| `outdent()` | `() => void` | |
| `outlineDemote()` | `() => void` | |
| `outlineDemoteToBody()` | `() => void` | |
| `outlinePromote()` | `() => void` | |
| `space1()` | `() => void` | |
| `space1Pt5()` | `() => void` | |
| `space2()` | `() => void` | |
| `tabHangingIndent()` | `(count: number) => void` | |
| `tabIndent()` | `(count: number) => void` | |

## `ParagraphContentLocation`

insertOoxml/insertHtml anchors: OfficeJS's Replace/Start/End plus sibling Before/After.

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type ParagraphContentLocation = ParagraphOoxmlLocation | "Replace"
```

## `ParagraphFormat`

Direct paragraph formatting. `undefined` leaves the existing (or inherited)
value alone; every set property is written as an explicit direct value.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`, `@reductoai/docx/node`.

| Name | Type | Description |
| - | - | - |
| `alignment?` | `ParagraphAlignment \| null` | Horizontal alignment (`w:jc`); null removes the direct property. |
| `borders?` | `ParagraphBorders \| null` | Direct borders, one side at a time; null removes the whole `w:pBdr`. |
| `contextualSpacing?` | `boolean \| null` | No space between paragraphs of the same style (`w:contextualSpacing`); null removes it. |
| `firstLineIndentPt?` | `number \| null` | First-line indent, in points: positive writes `w:firstLine`, negative a `w:hanging` indent (the OfficeJS convention). The two share one OOXML slot; null removes both. |
| `frame?` | `ParagraphFrame \| null` | Text frame or drop cap (`w:framePr`), replacing any direct one; null removes it. |
| `keepLines?` | `boolean \| null` | Keep the paragraph's lines on one page (`w:keepLines`); null removes it. |
| `keepNext?` | `boolean \| null` | Keep with the next paragraph (`w:keepNext`); null removes the property. |
| `leftIndentPt?` | `number \| null` | Left indent, in points (`w:ind w:left`, twentieths); negative reaches into the margin. null removes the attribute, and an attributeless `w:ind` too. |
| `lineSpacing?` | `number \| null` | Line spacing multiple; 1 = single, 1.5, 2... (`w:line` 240ths, rule "auto"); null removes it. |
| `lineSpacingPt?` | `number \| null` | Fixed line height in points (`w:line` twentieths) under lineSpacingRule; null removes it. |
| `lineSpacingRule?` | `LineSpacingRule` | Word's Exactly / At least; required with a numeric lineSpacingPt. |
| `lineUnitAfter?` | `number` | |
| `lineUnitBefore?` | `number` | Grid-line spacing before/after (`w:beforeLines`/`w:afterLines`, hundredths). |
| `mirrorIndents?` | `boolean \| null` | Swap the indents on facing pages (`w:mirrorIndents`); null removes it. |
| `outlineLevel?` | `number` | Word outline level 1..10; 10 is body text (`w:outlineLvl` 0..9). |
| `rightIndentPt?` | `number \| null` | Right indent, in points (`w:ind w:right`, twentieths); null removes it. |
| `rightToLeft?` | `boolean \| null` | Right-to-left paragraph direction (`w:bidi`). Both booleans write an explicit direct property, so false overrides an RTL style; null removes the direct property so the style chain shows through again. |
| `shading?` | `string \| false \| null` | Fill as RRGGBB (`w:shd`); false writes an explicit auto fill over a style, null removes it. |
| `spaceAfterPt?` | `number \| null` | Space after the paragraph, in points (`w:spacing w:after`); null removes it. |
| `spaceBeforePt?` | `number \| null` | Space before the paragraph, in points (`w:spacing w:before`, twentieths); null removes the attribute, and an attributeless `w:spacing` goes with it. |
| `styleId?` | `string \| false` | Existing paragraph style ID (`w:pStyle`); false removes the direct reference. |
| `suppressLineNumbers?` | `boolean \| null` | Skip this paragraph in the section's line numbers (`w:suppressLineNumbers`); null removes it. |
| `tabStops?` | `readonly TabStopInput[] \| null` | Replace the paragraph's declared tab stops (`w:tabs`); an empty array or null removes them. |
| `widowControl?` | `boolean \| null` | Suppress single stray lines (`w:widowControl`); null removes the property. |

## `ParagraphFormatUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type ParagraphFormatUpdateData = WritableProperties<ParagraphFormat>
```

## `ParagraphOoxmlLocation`

Not exported by name. You get it from the API.

```ts theme={null}
type ParagraphOoxmlLocation = "Before" | "After" | "Start" | "End"
```

## `ParagraphRangeLike`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `paragraph` | `T` | |

## `ParagraphUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type ParagraphUpdateData = WritableProperties<Paragraph> & { font?: FontSetFormat; listItem?: ListItemUpdateData; listItemOrNullObject?: ListItemUpdateData; shading?: ShadingUniversalUpdateData }
```

## `RunBorder`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `color?` | `string` | "auto" or RRGGBB; defaults to auto. |
| `sizePt?` | `number` | Border width in points; eighth-point steps from 0.25 through 12. |
| `spacePt?` | `number` | Gap between text and border in whole points, 0 through 31. |
| `style?` | `RunBorderStyle` | Line style; defaults to single. |

## `RunBorderStyle`

Not exported by name. You get it from the API.

```ts theme={null}
type RunBorderStyle = typeof RUN_BORDER_STYLES[number]
```

## `RunFormat`

Direct run formatting for authored text. `undefined` leaves the cloned or
inherited value alone; `false` forces the property off with an explicit
`w:val="0"` (or `w:u w:val="none"`) so a style-inherited toggle is overridden,
per the ECMA-376-1 §17.7.3 toggle-property rules. `null`, where the key
accepts it, removes the direct property so the style value shows through.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

| Name | Type | Description |
| - | - | - |
| `bold?` | `boolean \| null` | |
| `boldBidirectional?` | `boolean` | |
| `border?` | `RunBorder \| false` | Text border; false writes `w:val="nil"` to clear an inherited border. |
| `caps?` | `boolean \| null` | |
| `characterStyle?` | `string` | Character style reference (`w:rStyle`); an empty string removes it. |
| `charSpacingPt?` | `number` | Per-character tracking in points; twentieths allowed (`w:spacing`). |
| `color?` | `string \| null` | Text color: "auto" or RRGGBB hex. Replaces any theme color on the range. |
| `complexScript?` | `boolean` | Force complex-script formatting for this run (`w:cs`). |
| `contextualAlternates?` | `boolean` | |
| `disableCharacterSpaceGrid?` | `boolean` | Ignore the document character grid (`w:snapToGrid` is the inverse). |
| `doubleStrike?` | `boolean \| null` | |
| `emboss?` | `boolean` | |
| `emphasisMark?` | `EmphasisMark` | East Asian emphasis mark (`w:em`). |
| `engrave?` | `boolean` | |
| `font?` | `string \| null` | Face name written to `w:rFonts` ascii/hAnsi/cs slots. East Asian slots are left alone; latin theme attributes are removed so the literal name wins (theme slots outrank literal ones per ECMA-376-1 §17.3.2.26). Word's theme spellings ("+Body", "+Headings" and their " CS" and " Asian" forms) write the theme slots instead. |
| `glow?` | `RunGlow \| null` | Text Effects > Glow (`w14:glow`); null removes it. |
| `hidden?` | `boolean` | |
| `highlight?` | `HighlightColor \| null` | |
| `italic?` | `boolean \| null` | |
| `italicBidirectional?` | `boolean` | |
| `kerningPt?` | `number` | Minimum point size at which automatic kerning applies (`w:kern`, half-points). |
| `language?` | `string` | Proofing language of Latin text (`w:lang/@w:val`), a BCP 47 tag such as "en-US". |
| `languageFarEast?` | `string` | Proofing language of East Asian text (`w:lang/@w:eastAsia`), a BCP 47 tag such as "ja-JP". |
| `ligature?` | `LigatureValue` | |
| `nameAscii?` | `string` | |
| `nameBidirectional?` | `string` | |
| `nameFarEast?` | `string` | |
| `nameOther?` | `string` | |
| `noProof?` | `boolean` | Do not check spelling or grammar (`w:noProof`). |
| `numberForm?` | `NumberFormValue` | |
| `numberSpacing?` | `NumberSpacingValue` | |
| `outline?` | `boolean` | |
| `positionPt?` | `number` | Baseline shift in points (`w:position`, half-points). |
| `reset?` | `boolean` | Remove direct run formatting before applying any other supplied properties. |
| `resizeFont?` | `-1 \| 1` | Word's Grow Font (`1`) or Shrink Font (`-1`) step, applied to each run on its own. |
| `rightToLeft?` | `boolean \| null` | Force this run into the Unicode bidi algorithm's RTL class (`w:rtl`). |
| `scaling?` | `number` | Horizontal glyph scaling percentage (`w:w`). |
| `shading?` | `string \| null` | Text background shading as RRGGBB (`w:shd`), independent of highlight; null clears it. |
| `shadow?` | `boolean` | |
| `sizeBidirectional?` | `number` | |
| `sizePt?` | `number \| null` | Font size in points; halves allowed (`w:sz` counts half-points). |
| `smallCaps?` | `boolean \| null` | |
| `strike?` | `boolean \| null` | |
| `stylisticSet?` | `number` | 0 is the default set; 1 through 20 select the corresponding OpenType set. |
| `textGradient?` | `RunTextGradient \| null` | Font Color > Gradient (`w14:textFill`); null removes it. A solid `color` replaces it too. |
| `textOutline?` | `RunTextOutline \| null` | Text Effects > Outline (`w14:textOutline`); a partial value keeps the rest; null removes it. |
| `textReflection?` | `RunTextReflection \| null` | Text Effects > Reflection (`w14:reflection`); null removes it. |
| `textShadow?` | `RunTextShadow \| null` | Text Effects > Shadow (`w14:shadow`); null removes it. `shadow` is the legacy w:shadow. |
| `underline?` | `boolean \| UnderlineStyle \| null` | true = single; false = none; named values preserve richer OOXML underline styles. |
| `underlineColor?` | `string` | Underline color: "auto" or RRGGBB hex (`w:u/@w:color`). |
| `vertAlign?` | `VerticalAlignment \| null` | Superscript/subscript (`w:vertAlign`); "baseline" clears an inherited shift. |
| `wordArt?` | `number \| null` | Text Effects gallery tile, 1 to 15 row-major; it replaces every text effect. Null clears them all. |

## `RunTextShadow`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `align?` | `string` | `w14:algn`: tl, t, tr, l, ctr, r, bl, b, br or none. |
| `blurPt` | `number` | |
| `color?` | `string` | RRGGBB; black by default. |
| `directionDeg` | `number` | Degrees clockwise from the +x axis, as `w14:dir`. |
| `distancePt` | `number` | |
| `scaleX?` | `number` | Percent; Word's inner presets write 0, which paints nothing. |
| `scaleY?` | `number` | |
| `skewXDeg?` | `number` | |
| `skewYDeg?` | `number` | |
| `transparency?` | `number` | 0 opaque … 1 clear. |

## `SetDefaultFontReport`

Import from `@reductoai/docx/officejs`.

| Name | Type | Description |
| - | - | - |
| `directRuns` | `number` | Runs with their own `w:rFonts`, which the new default does not reach. |
| `hint` | `string` | What to do when the default is shadowed. |
| `runs` | `number` | Text runs across every story. |
| `styles` | `string[]` | Styles with their own latin `w:rFonts`, which the new default does not reach. |

## `ShadingBacking`

Where a ShadingUniversal finds its `w:shd`. A table cell's `w:tcPr` is one
backing; a paragraph's `w:pPr` is another, and supplies its own.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `write()` | `(apply: () => void) => void` | Run one shading write under the document's change tracking, then note the mutation. |

## `ShadingTarget`

Where a Shading handle finds its `w:shd`.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `assertLive()` | `() => void` | |
| `edit()` | `(change: StyleShadingEdit) => void` | |

## `ShadingUniversalUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type ShadingUniversalUpdateData = WritableProperties<ShadingUniversal>
```

## `ShadingUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type ShadingUpdateData = WritableProperties<Shading>
```

## `StyleBorderEdit`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `color?` | `string \| null` | "auto" or RRGGBB without the leading hash; null means "auto". |
| `sizeEighthPt?` | `number \| null` | `w:sz`, in eighths of a point. |
| `spacePt?` | `number \| null` | `w:space`, the gap between border and text in whole points (Word keeps 0..31). |
| `style?` | `string \| null` | OOXML `w:val` token, e.g. "single"; null removes the whole side element. |

## `StyleBorderLocation`

The border locations a style-level border collection can address.

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type StyleBorderLocation = "Top" | "Left" | "Bottom" | "Right" | "InsideHorizontal" | "InsideVertical"
```

## `StyleShadingEdit`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `color?` | `string \| null` | `w:color`; null removes the attribute. |
| `fill?` | `string \| null` | `w:fill`; null removes the attribute. |
| `texture?` | `string \| null` | `w:val` texture token; null removes the attribute. |

## `StyleType`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type StyleType = typeof StyleType[keyof typeof StyleType]
```

## `StyleUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type StyleUpdateData = WritableProperties<Style> & { font?: FontSetFormat; paragraphFormat?: ParagraphFormatUpdateData; shading?: ShadingUpdateData; tableStyle?: TableStyleUpdateData }
```

## `StylisticSet`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type StylisticSet = typeof StylisticSet[keyof typeof StylisticSet]
```

## `TabLeaderValue`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type TabLeaderValue = typeof TabLeader[keyof typeof TabLeader]
```

## `TabStop`

One declared stop: position in points from the text margin.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `alignment` | `TabStopAlignment` | |
| `leader` | `TabStopLeader` | |
| `position` | `number` | |

## `TabStopAlignment`

Not exported by name. You get it from the API.

```ts theme={null}
type TabStopAlignment = typeof TAB_STOP_ALIGNMENTS[number]
```

## `TabStopInput`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `alignment?` | `TabStopAlignment` | |
| `leader?` | `TabStopLeader` | |
| `position` | `number` | |

## `TabStopLeader`

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

```ts theme={null}
type TabStopLeader = typeof TAB_STOP_LEADERS[number]
```

## `TextInsertLocation`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type TextInsertLocation = Extract<InsertLocation, "Start" | "End" | "Replace">
```

## `ThemeColorIndex`

VBA `MsoThemeColorSchemeIndex` without its `msoTheme` prefix.

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type ThemeColorIndex = "Dark1" | "Light1" | "Dark2" | "Light2" | "Accent1" | "Accent2" | "Accent3" | "Accent4" | "Accent5" | "Accent6" | "Hyperlink" | "FollowedHyperlink"
```

## `UnderlineStyle`

Not exported by name. You get it from the API.

```ts theme={null}
type UnderlineStyle = typeof UNDERLINE_STYLES[number]
```

## `UnderlineType`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type UnderlineType = typeof UnderlineType[keyof typeof UnderlineType]
```

## `VerticalAlignment`

Not exported by name. You get it from the API.

```ts theme={null}
type VerticalAlignment = typeof VERTICAL_ALIGNMENTS[number]
```
