# `webpack.serialization` Types

These types are not exported by webpack, but they are available to TypeScript consumers.

## Interface: `ObjectDeserializerContext`

Updates set size using the provided set.

### Properties

* `read` {() => any}
* `setCircularReference` {(value: ReferenceableItem) => void}

***

## Interface: `ObjectSerializerContext`

Updates set size using the provided set.

### Properties

* `rollback` {(snapshot: ObjectSerializerSnapshot) => void}
* `setCircularReference` {(value: ReferenceableItem) => void}
* `snapshot` {() => ObjectSerializerSnapshot}
* `write` {(value?: any) => void}
* `writeLazy` {(item?: any) => void}
* `writeSeparate` {(item: any, obj?: LazyOptions) => LazyFunction<any, any, any, LazyOptions>}

***

## Interface: `ObjectSerializerSnapshot`

Updates set size using the provided set.

### Properties

* `currentPos` {number}
* `currentPosTypeLookup` {number}
* `cycleStackSize` {number}
* `length` {number}
* `objectTypeLookupSize` {number}
* `referenceableSize` {number}
