import { GitIgnoreHierarchy, IsIgnoredExResult } from './GitIgnoreFile'; /** * Class to cache and process `.gitignore` file queries. */ export declare class GitIgnore { private resolvedGitIgnoreHierarchies; private knownGitIgnoreHierarchies; private _roots; private _sortedRoots; /** * @param roots - (search roots) an optional array of root paths to prevent searching for `.gitignore` files above the root. * If a file is under multiple roots, the closest root will apply. If a file is not under any root, then * the search for `.gitignore` will go all the way to the system root of the file. */ constructor(roots?: string[]); findResolvedGitIgnoreHierarchy(directory: string): GitIgnoreHierarchy | undefined; isIgnoredQuick(file: string): boolean | undefined; isIgnored(file: string): Promise; isIgnoredEx(file: string): Promise; findGitIgnoreHierarchy(directory: string): Promise; filterOutIgnored(files: string[]): Promise; filterOutIgnored(files: Iterable): Promise; filterOutIgnored(files: AsyncIterable): AsyncIterable; filterOutIgnored(files: Iterable | AsyncIterable): Promise | AsyncIterable; filterOutIgnored(files: Iterable & AsyncIterable): AsyncIterable; filterOutIgnoredAsync(files: Iterable | AsyncIterable): AsyncIterable; get roots(): string[]; addRoots(roots: string[]): void; peekGitIgnoreHierarchy(directory: string): Promise | undefined; private cleanCachedEntries; private _findGitIgnoreHierarchy; private determineRoot; } //# sourceMappingURL=GitIgnore.d.ts.map