@adguard/agtree
Version:
Tool set for working with adblock filter lists
16 lines (15 loc) • 587 B
TypeScript
import { type Node } from '../nodes/index.js';
import { type InputByteBuffer } from '../utils/input-byte-buffer.js';
/**
* Base class for deserializers. Each deserializer should extend this class.
*/
export declare class BaseDeserializer {
/**
* Deserializes the AST node from a byte buffer.
*
* @param buffer Input byte buffer to read from.
* @param node Destination node to write to.
* @param args Additional, parser-specific arguments, if needed.
*/
static deserialize(buffer: InputByteBuffer, node: Partial<Node>, ...args: unknown[]): void;
}