# SerializedBinaryHeap

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

A plain, inert snapshot of a binary heap. It holds no behavior and no reference to the heap it came from, so it can be stored, compared, structurally cloned, or sent through `postMessage`. It survives `JSON.stringify` when the elements themselves do.

## Type Parameters

### A

`A`

## Properties

### schemaVersion

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

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

Wire-schema version.

***

### kind

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

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

The storage layout and extraction direction to restore.

***

### nodes

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

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

The internal node array, in exact internal heap order.
