import type { Matcher } from './types.js'; /** Longest accepted pattern; mirrors the vendored baseline's glob cap. */ export declare const MAX_GLOB_PATTERN_LENGTH = 512; export interface GlobOptions { platform: NodeJS.Platform; } /** * Escape picomatch syntax that shell signatures use literally. Bare `(`, `)`, * and `|` are extglob/alternation operators to picomatch: an unbalanced `(` * degrades to the never-matching `/$^/`, and `|` silently widens a pattern. * The fork-bomb signature and the `curl*|*sh` pipeline rule both need those * characters literal, so this guard intentionally supports only `*`, `?`, * character classes, and brace expansion — not extglob/alternation. * * Already-escaped characters and backslash escapes are preserved. */ export declare function escapeLiteralGlobSyntax(pattern: string): string; /** * Compile one glob. `dot: true` lets dotfiles match path globs, `nonegate` * keeps a leading `!` literal (argv negation is handled by the loader), and * `nocase` makes Windows matching case-insensitive. */ export declare function compileGlob(pattern: string, options: GlobOptions): Matcher; /** Compile every pattern, preserving order for diagnostics. */ export declare function compileGlobs(patterns: readonly string[], options: GlobOptions): Matcher[]; /** True when at least one compiled matcher accepts the input. */ export declare function matchesAny(matchers: readonly Matcher[], input: string): boolean; //# sourceMappingURL=glob.d.ts.map