interface DeserializeOptions { maxDepth?: number; } /** * Options for deserializing error objects. */ type DeserializeOptionsType = DeserializeOptions; /** * Deserialize a value back to its original form. * If the value looks like a serialized error, it will be reconstructed as an Error instance. * Otherwise, it will be wrapped in a NonError. */ declare const deserialize: (value: unknown, options?: DeserializeOptionsType) => Error; export default deserialize;