import ignore from "ignore"; export declare const IGNORE_FILE_NAMES: string[]; export type IgnoreMatcher = ReturnType; export declare function toPosixPath(p: string): string; export declare function prefixIgnorePattern(line: string, prefix: string): string | null; export declare function addIgnoreRules(ig: IgnoreMatcher, dir: string, rootDir: string): void; export declare function isPattern(s: string): boolean; export declare function isOverridePattern(s: string): boolean; export declare function hasGlobPattern(s: string): boolean; export declare function splitPatterns(entries: string[]): { plain: string[]; patterns: string[]; }; export declare function collectFiles(dir: string, filePattern: RegExp, skipNodeModules?: boolean, ignoreMatcher?: IgnoreMatcher, rootDir?: string): string[]; export declare function matchesAnyPattern(filePath: string, patterns: string[], baseDir: string): boolean; export declare function normalizeExactPattern(pattern: string): string; export declare function matchesAnyExactPattern(filePath: string, patterns: string[], baseDir: string): boolean; export declare function getOverridePatterns(entries: string[]): string[]; export declare function isEnabledByOverrides(filePath: string, patterns: string[], baseDir: string): boolean; /** * Apply patterns to paths and return a Set of enabled paths. * Pattern types: * - Plain patterns: include matching paths * - `!pattern`: exclude matching paths * - `+path`: force-include exact path (overrides exclusions) * - `-path`: force-exclude exact path (overrides force-includes) */ export declare function applyPatterns(allPaths: string[], patterns: string[], baseDir: string): Set; //# sourceMappingURL=ignore.d.ts.map