UNPKG

@adguard/agtree

Version:
35 lines (34 loc) 1.02 kB
import { type AgentCommentRule } from '../../nodes/index.js'; import { type InputByteBuffer } from '../../utils/input-byte-buffer.js'; import { BaseDeserializer } from '../base-deserializer.js'; /** * `AgentCommentDeserializer` is responsible for deserializing an Adblock agent comments. * Adblock agent comment marks that the filter list is supposed to * be used by the specified ad blockers. * * @example * - ```adblock * [AdGuard] * ``` * - ```adblock * [Adblock Plus 2.0] * ``` * - ```adblock * [uBlock Origin] * ``` * - ```adblock * [uBlock Origin 1.45.3] * ``` * - ```adblock * [Adblock Plus 2.0; AdGuard] * ``` */ export declare class AgentCommentDeserializer extends BaseDeserializer { /** * Deserializes an agent list node from binary format. * * @param buffer ByteBuffer for reading binary data. * @param node Destination node. */ static deserialize(buffer: InputByteBuffer, node: Partial<AgentCommentRule>): void; }