# SerializedKHeap

Defined in: [packages/heap/src/serialization/families/k-heap.ts:20](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/heap/src/serialization/families/k-heap.ts#L20)

A plain, inert snapshot of a k-ary heap, adding the layout’s `arity`. Restoring requires the same arity the heap was built with; it is validated as a safe integer of at least 2 exactly like the factory argument.

## Type Parameters

### A

`A`

## Properties

### schemaVersion

> `readonly` **schemaVersion**: `1`

Defined in: [packages/heap/src/serialization/families/k-heap.ts:22](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/heap/src/serialization/families/k-heap.ts#L22)

Wire-schema version.

***

### kind

> `readonly` **kind**: `"k-min"` | `"k-max"`

Defined in: [packages/heap/src/serialization/families/k-heap.ts:24](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/heap/src/serialization/families/k-heap.ts#L24)

The storage layout and extraction direction to restore.

***

### arity

> `readonly` **arity**: `number`

Defined in: [packages/heap/src/serialization/families/k-heap.ts:26](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/heap/src/serialization/families/k-heap.ts#L26)

Children per node, as the factory fixed it.

***

### nodes

> `readonly` **nodes**: readonly `A`\[]

Defined in: [packages/heap/src/serialization/families/k-heap.ts:28](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/heap/src/serialization/families/k-heap.ts#L28)

The internal node array, in exact internal heap order.
