UNPKG

@adguard/agtree

Version:
21 lines (20 loc) 864 B
import { type GenericPlatform, type SpecificPlatform } 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. * * @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: SpecificPlatform | GenericPlatform) => 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;