UNPKG

@adguard/agtree

Version:
29 lines (28 loc) 1.1 kB
/** * 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 CosmeticRuleMarshallingMap: { readonly Syntax: 1; readonly Exception: 2; readonly Separator: 3; readonly Modifiers: 4; readonly Domains: 5; readonly Body: 6; readonly Start: 7; readonly End: 8; }; export type CosmeticRuleMarshallingMap = typeof CosmeticRuleMarshallingMap[keyof typeof CosmeticRuleMarshallingMap]; /** * Value 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 frequently used values. * * ! 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 COSMETIC_RULE_SEPARATOR_SERIALIZATION_MAP: Map<string, number>;