> ## 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: layout and fonts: Data, sorting and validation

## `FieldFilterKind`

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

```ts theme={null}
type FieldFilterKind = "Label" | "Value"
```

## `FieldFilterSpec`

One `<filter>`: its type, the autoFilter criteria and the strings Excel shows in its dialog.

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

| Name | Type | Description |
| - | - | - |
| `and?` | `boolean` | |
| `conditions?` | `{ op: CustomOperator; val: string }[]` | |
| `measure?` | `number` | The data field a value filter measures. |
| `string1?` | `string` | |
| `string2?` | `string` | |
| `top10?` | `{ percent: boolean; top: boolean; val: number }` | |
| `type` | `string` | |

## `FieldSortSpec`

A field's order: by label, or by one value field on the other axis's line through `scope`.

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

| Name | Type | Description |
| - | - | - |
| `by?` | `{ data: number; scope: [fld: number, item: Scalar][] }` | |
| `order` | `"ascending" \| "descending"` | |

## `FilterScope`

An autoFilter's range: on a table part (`table` its id) or on the sheet itself.

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

| Name | Type | Description |
| - | - | - |
| `c0` | `number` | |
| `c1` | `number` | |
| `header` | `number` | Header row and columns, 0-based; data rows run `header + 1`..`last`. |
| `last` | `number` | |
| `part` | `string` | |
| `sheet` | `number` | |
| `table` | `number \| null` | |

## `LineShift`

Whole rows (axis "rows") or columns inserted (count > 0) or deleted at `at`.

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

| Name | Type | Description |
| - | - | - |
| `at` | `number` | |
| `axis` | `"rows" \| "cols"` | |
| `count` | `number` | |

## `ShiftWatch`

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

```ts theme={null}
type ShiftWatch = (part: string, axis: "rows" | "cols", at: number, count: number) => void
```
