@adguard/agtree
Version:
Tool set for working with adblock filter lists
26 lines (25 loc) • 1.04 kB
TypeScript
import { type ConfigCommentRule } from '../../nodes/index.js';
import { type OutputByteBuffer } from '../../utils/output-byte-buffer.js';
import { BaseSerializer } from '../base-serializer.js';
/**
* `ConfigCommentSerializer` is responsible for serializing inline AGLint configuration rules into a binary format.
* Generally, the idea is inspired by ESLint inline configuration comments.
*
* @see {@link https://eslint.org/docs/latest/user-guide/configuring/rules#using-configuration-comments}
*/
export declare class ConfigCommentSerializer extends BaseSerializer {
/**
* Serializes a config node to binary format.
*
* @param node Node to serialize.
* @param buffer ByteBuffer for writing binary data.
*/
private static serializeConfigNode;
/**
* Serializes a metadata comment node to binary format.
*
* @param node Node to serialize.
* @param buffer ByteBuffer for writing binary data.
*/
static serialize(node: ConfigCommentRule, buffer: OutputByteBuffer): void;
}