import { Expression } from '../core/expression'; import { LineInfo } from '../misc/utils'; import { IExpression } from '../typings/expression'; import { IType } from '../typings/type'; import { MichelsonType } from '../core/enums/type'; /** * Serializes any value of packable type to its optimized binary representation, of type `TBytes()`. * * ```typescript * Pack(Nat(1)); * ``` * * @category Serialization * * @param expression An expression * @param {LineInfo} line Source code line information (Used in error messages) * * @returns {IExpression} An expression of type `TBytes()`. */ export declare const Pack: (expression: IExpression, line?: LineInfo) => import("../misc/proxy").Proxied>; /** * Deserialize a value of type `TBytes()` into the corresponding Michelson value of type `TOption(...)`. * * ```typescript * Unpack(Bytes("0x05070707070100000004746f746f020000000800030007000900010200000006000100020003")); * ``` * * @category Serialization * * @param expression An expression that evaluates to type `TBytes()` * @param type The type of the deserialized value. * @param {LineInfo} line Source code line information (Used in error messages) * * @returns {IExpression} An expression of type `TOption()` */ export declare const Unpack: (expression: IExpression, type?: IType, line?: LineInfo) => import("../misc/proxy").Proxied>; export declare const Serialization: { Pack: (expression: IExpression, line?: LineInfo) => import("../misc/proxy").Proxied>; Unpack: (expression: IExpression, type?: IType, line?: LineInfo) => import("../misc/proxy").Proxied>; };