export { crawlFiles }; declare const globstar = "**/"; type FilePattern = `${typeof globstar}${'+*' | 'skills/*/SKILL'}`; /** * Crawl the files matching `filePattern`, using `$ git ls-files` and, as a fallback, [tinyglobby](https://github.com/SuperchupuDev/tinyglobby). */ declare function crawlFiles(options: { filePattern: FilePattern; fileExtension: readonly string[]; cwd: string; /** * Whether dotfiles and dot directories are crawled. * * Same as tinyglobby's `dot` option. */ dot: boolean; /** * Which crawlers to use. * - `git` => `$ git ls-files` (fast, but skips gitignored files) * - `glob` => tinyglobby (finds gitignored files) * * If both are enabled, tinyglobby is only used as a fallback when `$ git ls-files` doesn't find any file. * If Git isn't usable (Git isn't installed, or `cwd` isn't inside a Git repository), tinyglobby is always used. */ crawler: { git: boolean; glob: boolean; }; }): Promise;