UNPKG

@requestnetwork/multi-format

Version:
22 lines 952 B
import { MultiFormatTypes } from '@requestnetwork/types'; import { encryptionFormats } from './encryption/encryption-format'; import { MultiFormatGroup } from './multi-format-group'; import { hashFormat } from './hash/hash-format'; import { identityFormat } from './identity/identity-format'; import { plainFormat } from './plain/plain-format'; export { encryptionFormats, MultiFormatGroup, hashFormat, identityFormat, plainFormat }; /** * Deserializes any supported serialized string * * @param formatted the string to deserialize * @returns the deserialized object or throw */ export declare function deserialize(formatted: string): MultiFormatTypes.IMultiFormatDeserialized; /** * Serializes any supported serializable object * * @param data the object to serialize * @returns the serialized string or throw. */ export declare function serialize(data: MultiFormatTypes.IMultiFormatDeserialized): string; //# sourceMappingURL=index.d.ts.map