@adguard/agtree
Version:
Tool set for working with adblock filter lists
48 lines (47 loc) • 1.79 kB
TypeScript
import { OperatorValue } from '../../nodes/index.js';
/**
* Property map for binary serialization.
*
* ! IMPORTANT: If you change values here, please update the {@link BINARY_SCHEMA_VERSION} !
*/
export declare const VariableNodeBinaryPropMarshallingMap: {
readonly Name: 1;
readonly FrequentName: 2;
readonly Start: 3;
readonly End: 4;
};
export type VariableNodeBinaryPropMarshallingMap = typeof VariableNodeBinaryPropMarshallingMap[keyof typeof VariableNodeBinaryPropMarshallingMap];
/**
* Property map for binary serialization.
*
* ! IMPORTANT: If you change values here, please update the {@link BINARY_SCHEMA_VERSION} !
*/
export declare const OperatorNodeBinaryPropMarshallingMap: {
readonly Operator: 1;
readonly Left: 2;
readonly Right: 3;
readonly Start: 4;
readonly End: 5;
};
export type OperatorNodeBinaryPropMarshallingMap = typeof OperatorNodeBinaryPropMarshallingMap[keyof typeof OperatorNodeBinaryPropMarshallingMap];
/**
* Property map for binary serialization.
*
* ! IMPORTANT: If you change values here, please update the {@link BINARY_SCHEMA_VERSION} !
*/
export declare const ParenthesisNodeBinaryPropMarshallingMap: {
readonly Expression: 1;
readonly Start: 2;
readonly End: 3;
};
export type ParenthesisNodeBinaryPropMarshallingMap = typeof ParenthesisNodeBinaryPropMarshallingMap[keyof typeof ParenthesisNodeBinaryPropMarshallingMap];
/**
* Property map for binary serialization.
*
* ! IMPORTANT: If you change values here, please update the {@link BINARY_SCHEMA_VERSION} !
*/
export declare const LOGICAL_EXPRESSION_OPERATOR_SERIALISATION_MAP: Map<OperatorValue, number>;
/**
* Serialization map for known variables.
*/
export declare const KNOWN_VARIABLES_SERIALIZATION_MAP: Map<string, number>;