/** * Glob expansion for extension names. * * Expands `*` wildcards against a list of names. Only `*` is supported * as a wildcard — all other characters are treated as literals. * * @experimental This API is unstable and may change without notice. */ /** * Match one extension name against a pattern. * * Only `*` wildcards are supported. All other characters (including `?`, `[`, `]`) * are treated as literals. Matching is case-sensitive. * * @param pattern - The pattern to match (may contain `*`) * @param name - The name to check * @returns Whether the complete name matches */ export declare const matchesPattern: (pattern: string, name: string) => boolean; /** Expand a glob pattern against names, preserving their original order. */ export declare const expandGlob: (pattern: string, names: ReadonlyArray) => ReadonlyArray; /** * Expand multiple glob patterns against a list of extension names. * * Returns the union of all matches, deduplicated, preserving the original * order of `names`. * * @param patterns - Patterns to match (may contain `*`) * @param names - Available names to match against * @returns Matching names in their original order, deduplicated */ export declare const expandGlobs: (patterns: ReadonlyArray, names: ReadonlyArray) => ReadonlyArray; /** * Returns true when an input should be treated as a glob pattern. */ export declare const isGlobPattern: (input: string) => boolean; //# sourceMappingURL=name-patterns.d.ts.map