# deserializeSnapshotSet

> **deserializeSnapshotSet**<`T`>(`value`, `options`): [`SnapshotSet`](/reference/knotkit/snapshot-set/interfaces/snapshotset/)<`T`>

Defined in: [packages/snapshot-set/src/serialization/binary.ts:160](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/snapshot-set/src/serialization/binary.ts#L160)

Restore a binary snapshot set after validating all counts, histories, snapshot identities, codec results, and duplicate values in staging data.

## Type Parameters

### T

`T`

## Parameters

### value

`unknown`

### options

[`DeserializeSnapshotSetOptions`](/reference/knotkit/snapshot-set/wire/interfaces/deserializesnapshotsetoptions/)<`T`>

## Returns

[`SnapshotSet`](/reference/knotkit/snapshot-set/interfaces/snapshotset/)<`T`>

## Throws

With `MISSING_ELEMENT_CODEC` when `options.codec` is absent: supplying the codec is a caller contract, not a property of the bytes.

## Throws

For malformed bytes, unsupported versions, invalid histories, duplicate values, or decode-budget violations.
