@adguard/agtree
Version:
Tool set for working with adblock filter lists
16 lines (15 loc) • 593 B
TypeScript
import { type Agent } from '../../nodes/index.js';
import { type OutputByteBuffer } from '../../utils/output-byte-buffer.js';
import { BaseSerializer } from '../base-serializer.js';
/**
* `AgentSerializer` is responsible for serializing single adblock agent elements into a binary format.
*/
export declare class AgentSerializer extends BaseSerializer {
/**
* Serializes an agent node to binary format.
*
* @param node Node to serialize.
* @param buffer ByteBuffer for writing binary data.
*/
static serialize(node: Agent, buffer: OutputByteBuffer): void;
}