/** * A safe pattern matcher that uses glob-style patterns instead of regex. * This eliminates regex injection vulnerabilities while providing * sufficient flexibility for matching users and issuers. * * Supported patterns: * - * matches zero or more characters * - ? matches exactly one character * - All other characters match literally * * Examples: * - *@example.com matches any email at example.com * - user-? matches user-1, user-a, etc. * - https://*.auth.com matches any subdomain of auth.com */ export declare class PatternMatcher { private readonly pattern; private readonly regex; constructor(pattern: string); /** * Convert a glob pattern to a safe regex */ private globToRegex; /** * Test if a string matches the pattern */ test(value: string): boolean; /** * Get the original pattern */ getPattern(): string; /** * Create a pattern matcher from a string, with error handling */ static create(pattern: string, context: string): PatternMatcher | undefined; }