@adguard/agtree
Version:
Tool set for working with adblock filter lists
18 lines (17 loc) • 684 B
TypeScript
import { type Value } from '../../nodes/index.js';
import { BaseDeserializer } from '../base-deserializer.js';
import { type InputByteBuffer } from '../../utils/input-byte-buffer.js';
/**
* Value deserializer.
*/
export declare class ValueDeserializer extends BaseDeserializer {
/**
* Deserializes a value node from binary format.
*
* @param buffer ByteBuffer for reading binary data.
* @param node Destination node.
* @param frequentValuesMap Optional map of frequent values.
* @throws If the binary data is malformed.
*/
static deserialize(buffer: InputByteBuffer, node: Partial<Value>, frequentValuesMap?: Map<number, string>): void;
}