lix-website/themes/lix/assets/bootstrap/node_modules/cspell-lib/dist/exclusionHelper.d.ts

23 lines
1,013 B
TypeScript
Raw Normal View History

2024-04-27 03:39:10 +00:00
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