lix-website/themes/lix/assets/bootstrap/node_modules/cspell-lib/dist/exclusionHelper.d.ts
2024-04-26 22:49:34 -06:00

23 lines
1,013 B
TypeScript

import type { Glob } from '@cspell/cspell-types';
export declare type ExclusionFunction = (fileUri: string) => boolean;
export declare type FileExclusionFunction = (file: string) => boolean;
/** The structure of the VS Code search.exclude settings */
export interface ExcludeFilesGlobMap {
[glob: string]: boolean;
}
export declare function extractGlobsFromExcludeFilesGlobMap(globMap: ExcludeFilesGlobMap): string[];
/**
* @todo Support multi root globs.
* @param globs - glob patterns
* @param root - root directory
* @param allowedSchemes - allowed schemas
*/
export declare function generateExclusionFunctionForUri(globs: Glob[], root: string, allowedSchemes?: Set<string>): ExclusionFunction;
/**
* @todo Support multi root globs.
* @param globs - glob patterns
* @param root - root directory
* @param allowedSchemes - allowed schemas
*/
export declare function generateExclusionFunctionForFiles(globs: Glob[], root: string): FileExclusionFunction;
//# sourceMappingURL=exclusionHelper.d.ts.map