UNPKG

poe-i18n

Version:

i18n utility for Path of Exile

16 lines (15 loc) 599 B
import { Translation } from '../types/StatDescription'; export declare type Boundary = number | '#'; export declare type BoundedRange = [Boundary, Boundary]; export declare type Value = Boundary | BoundedRange; export declare enum Match { exact = 0, subset = 1, superset = 2, partial_upper = 3, partial_lower = 4, none = 5 } export declare function matchesTranslation(translation: Translation, values: Value[]): boolean; export declare function matchesSingle(value: Value, matcher: Value): Match; export declare function matches(values: Value[], matchers: Value[]): Match[];