/** * @fileoverview Brace expansion using the 'braces' package * * This module is critical because picomatch does NOT perform full brace expansion. * picomatch only does brace matching, meaning {a,b} will match 'a' or 'b' * but won't expand the pattern into ['a', 'b']. * * minimatch uses brace-expansion to fully expand patterns like: * - {a,b,c} -> ['a', 'b', 'c'] * - {1..3} -> ['1', '2', '3'] * - {a..c} -> ['a', 'b', 'c'] * - a{b,c}d -> ['abd', 'acd'] * * We use 'braces' package which is maintained by the same author as picomatch * and is what micromatch uses internally. * * Security considerations: * - Maximum expansion length is limited to prevent DoS attacks * - Range expansion is limited (e.g., {1..1000000} is restricted) * * @author 686f6c61 * @see https://github.com/686f6c61/minimatch-fast * @license MIT */ import type { MinimatchOptions } from './types.js'; /** * Expand brace patterns like {a,b,c} and {1..3} * * Optimized with: * 1. Cache for repeated patterns * 2. Fast path for simple {a,b,c} patterns * * @param pattern - The glob pattern to expand * @param options - Minimatch options * @returns Array of expanded patterns */ export declare function braceExpand(pattern: string, options?: MinimatchOptions): string[]; //# sourceMappingURL=brace-expand.d.ts.map