> ## 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: editor: Collaboration

## `PeerMark`

Another writer's selection on sheet `sheet`; cells 1-based.

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

| Name | Type | Description |
| - | - | - |
| `c1` | `number` | |
| `c2` | `number` | |
| `color` | `string` | |
| `line?` | `"dashed"` | `dashed`: Excel's marquee round copied cells, as Format Painter's source shows. |
| `name?` | `string` | The writer's name, shown as a tag on the block. |
| `r1` | `number` | |
| `r2` | `number` | |
| `sheet` | `number` | |

## `PeerSelection`

Another writer's selection, drawn in their colour.

Import from `@reductoai/xlsx-editor`.

| Name | Type | Description |
| - | - | - |
| `block` | `CellBlock` | |
| `color` | `string` | |
| `name?` | `string` | |

## `RemoteApplied`

What a remote change did to this workbook.

Import from `@reductoai/xlsx/collab`.

| Name | Type | Description |
| - | - | - |
| `parts` | `Set<string>` | Parts written, cells' sheets included. |
| `shifts` | `Record<string, Shift[]>` | Rows (axis 0) and columns (axis 1) inserted or deleted, by sheet part. |

## `SheetChange`

A command that adds, removes, moves or hides a sheet: where each old tab index went, null when gone.

Import from `@reductoai/xlsx/editor`.

| Name | Type | Description |
| - | - | - |
| `active` | `number` | |
| `remap` | `(index: number) => number \| null` | |

## `XlsxPeerMark`

Another writer as this editor shows it: the sheet by index on this workbook.

Import from `@reductoai/xlsx/editor`.

| Name | Type | Description |
| - | - | - |
| `active` | `{ c: number; r: number }` | |
| `block` | `CellBlock` | |
| `peer` | `Peer` | |

## `XlsxPresence`

A writer's selection as it travels: its sheet by part name, cells 1-based.

Import from `@reductoai/xlsx/editor`.

| Name | Type | Description |
| - | - | - |
| `active` | `{ c: number; r: number }` | |
| `c1` | `number` | |
| `c2` | `number` | |
| `part` | `string` | |
| `r1` | `number` | |
| `r2` | `number` | |

## `XlsxPresenceOptions`

Import from `@reductoai/xlsx/editor`.

| Name | Type | Description |
| - | - | - |
| `peer` | `Peer` | |
| `send` | `(update: PresenceUpdate<XlsxPresence>) => void` | |

## `XlsxRemote`

What a remote change did to the editor's view.

Import from `@reductoai/xlsx/editor`.

| Name | Type | Description |
| - | - | - |
| `remap` | `(index: number) => number \| null` | Where each sheet index before the change sits now; null when the sheet went. |
| `selection` | `EditorSelection` | The selection, moved with the cells it was on. |
| `sheetsChanged` | `boolean` | Whether the sheet list changed (added, removed, renamed or moved). |
