import picomatch from 'picomatch'; /** * Build a map that associates each glob pattern with its matching filepaths. */ export declare const buildPatternToFilepathMap: (patterns: string[], allFilepaths: string[], options?: picomatch.PicomatchOptions) => { [k: string]: string[]; }; /** * List relative filepaths contained within a directory root. * * This excludes: * * - Patterns in the ignore files specified in `ignoreFilenames` * - `.git` subdirectories * - `node_modules` subdirectories */ export declare const crawlDirectory: (root: string, ignoreFilenames?: string[]) => Promise; /** * Create a filter function that excludes filepaths based on ignore files like * `.gitignore` and `.prettierignore`. */ export declare const createInclusionFilter: (ignoreFilepaths: string[]) => Promise<(pathname: string) => boolean>; export declare const locateNearestFile: ({ cwd, filename, }: { cwd: string; filename: string; }) => Promise; export declare const locateFurthestFile: ({ cwd, filename, }: { cwd: string; filename: string; }) => Promise; export declare const findWorkspaceRoot: (cwd?: string) => Promise; export declare const findCurrentWorkspaceProjectRoot: (cwd?: string) => Promise;