UNPKG

@adguard/agtree

Version:
21 lines (20 loc) 833 B
/** * Property map for binary serialization. This helps to reduce the size of the serialized data, * as it allows us to use a single byte to represent a property. * * ! IMPORTANT: If you change values here, please update the {@link BINARY_SCHEMA_VERSION}! * * @note Only 256 values can be represented this way. */ export declare const AgentNodeMarshallingMap: { readonly Adblock: 1; readonly Version: 2; readonly Start: 3; readonly End: 4; }; export type AgentNodeMarshallingMap = typeof AgentNodeMarshallingMap[keyof typeof AgentNodeMarshallingMap]; /** * Value map for binary deserialization. This helps to reduce the size of the serialized data, * as it allows us to use a single byte to represent frequently used values. */ export declare const FREQUENT_AGENTS_DESERIALIZATION_MAP: Map<number, string>;