@adguard/agtree
Version:
Tool set for working with adblock filter lists
43 lines (42 loc) • 1.71 kB
TypeScript
/**
* 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 ConfigCommentRuleMarshallingMap: {
readonly Marker: 1;
readonly Command: 2;
readonly Params: 3;
readonly Comment: 4;
readonly Start: 5;
readonly End: 6;
};
export type ConfigCommentRuleMarshallingMap = typeof ConfigCommentRuleMarshallingMap[keyof typeof ConfigCommentRuleMarshallingMap];
/**
* 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 ConfigNodeMarshallingMap: {
readonly Value: 1;
readonly Start: 2;
readonly End: 3;
};
export type ConfigNodeMarshallingMap = typeof ConfigNodeMarshallingMap[keyof typeof ConfigNodeMarshallingMap];
/**
* 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.
*
* @see {@link https://github.com/AdguardTeam/AGLint/blob/master/src/linter/inline-config.ts}
*/
export declare const FREQUENT_COMMANDS_SERIALIZATION_MAP: Map<string, number>;