@adguard/agtree
Version:
Tool set for working with adblock filter lists
17 lines (16 loc) • 680 B
TypeScript
import { type AnyCommentRule } from '../../nodes/index.js';
import { BaseDeserializer } from '../base-deserializer.js';
import { type InputByteBuffer } from '../../utils/input-byte-buffer.js';
/**
* `CommentRuleDeserializer` is responsible for deserializing any comment-like adblock rules.
*/
export declare class CommentRuleDeserializer extends BaseDeserializer {
/**
* Deserializes a comment rule node from binary format.
*
* @param buffer ByteBuffer for reading binary data.
* @param node Destination node.
* @throws If the binary data is malformed.
*/
static deserialize(buffer: InputByteBuffer, node: Partial<AnyCommentRule>): void;
}