UNPKG

@adguard/agtree

Version:
19 lines (18 loc) 641 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 HostRuleMarshallingMap: { readonly Syntax: 1; readonly Raws: 2; readonly Ip: 3; readonly HostnameList: 4; readonly Comment: 5; readonly Start: 6; readonly End: 7; }; export type HostRuleMarshallingMap = typeof HostRuleMarshallingMap[keyof typeof HostRuleMarshallingMap];