@adguard/agtree
Version:
Tool set for working with adblock filter lists
21 lines (20 loc) • 864 B
TypeScript
import { type AnyPlatform } from '../platforms.js';
import { ResourceType } from '../schemas/resource-type.js';
/**
* Gets the adblock modifier name for the given resource type.
*
* @param resourceType Resource type to get the modifier name for.
* @param platform Platform to get the modifier for (can be specific, generic, or combined platforms).
*
* @returns A string containing the adblock modifier name for the given resource type
* or `null` if the modifier could not be found.
*/
export declare const getResourceTypeModifier: (resourceType: ResourceType, platform: AnyPlatform) => string | null;
/**
* Checks if the given resource type is valid.
*
* @param resourceType Resource type to check.
*
* @returns `true` if the resource type is valid, `false` otherwise.
*/
export declare const isValidResourceType: (resourceType: string) => boolean;