export const enum FormatVersion { /** WA-strings that are prefixed with '!'. MDT-compatible. */ Deflate = 1, /** WA-strings that are prefixed with '!WA:2!'. */ BinarySerialization = 2, } export function decode(str: string, max_decompressed_size?: number): Promise; export function encode(value: any, format_version?: FormatVersion): Promise; export function decodeSync(str: string, max_decompressed_size?: number): T; export function encodeSync(value: any, format_version?: FormatVersion): string;