/** * @packageDocumentation * * Helpers for matching token names against pattern collections. */ export type TokenPattern = string | RegExp; /** * Test whether a token name satisfies any pattern in the provided list. * * @param name - Token name to test. * @param patterns - Glob or regular expression patterns to match against. * @returns The original name when a pattern matches; otherwise `null`. */ export declare function matchToken(name: string, patterns: TokenPattern[]): string | null; /** * Suggest the closest token name from a list of string patterns using Levenshtein distance. * * @param name - Token name to compare. * @param patterns - Candidate token names; non-string patterns are ignored. * @returns The closest matching token name or `null` if none. */ export declare function closestToken(name: string, patterns: TokenPattern[]): string | null; //# sourceMappingURL=pattern.d.ts.map