# deserializeSegmentedTrie

> **deserializeSegmentedTrie**<`V`>(`value`, `options`): [`SegmentedTrie`](/reference/knotkit/trie/interfaces/segmentedtrie/)<`V`>

Defined in: [packages/trie/src/serialization/binary.ts:164](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/trie/src/serialization/binary.ts#L164)

Restore a binary segmented trie after validating its complete node graph, resolved keys, codec results, and decode budgets in staging data.

A factory override preserves exact entry order across layouts because node rows and terminal values are emitted in depth-first iteration order.

## Type Parameters

### V

`V`

## Parameters

### value

`unknown`

### options

[`DeserializeSegmentedTrieOptions`](/reference/knotkit/trie/wire/interfaces/deserializesegmentedtrieoptions/)<`V`>

## Returns

[`SegmentedTrie`](/reference/knotkit/trie/interfaces/segmentedtrie/)<`V`>

## Throws

With `MISSING_ELEMENT_CODEC` when `options.codec` is absent, which is a caller-contract violation rather than a decode failure.

## Throws

For malformed bytes, unsupported versions, noncanonical node or string tables, invalid values, or decode-budget violations.
