+++ /dev/null
-import { EntryItem } from '../types/entries';\r
-import { Pattern } from '../types/patterns';\r
-export declare type TransformFunction<T> = (entry: EntryItem) => T;\r
-export interface IOptions<T = EntryItem> {\r
- /**\r
- * The current working directory in which to search.\r
- */\r
- cwd: string;\r
- /**\r
- * The deep option can be set to true to traverse the entire directory structure,\r
- * or it can be set to a number to only traverse that many levels deep.\r
- */\r
- deep: number | boolean;\r
- /**\r
- * Add an array of glob patterns to exclude matches.\r
- */\r
- ignore: Pattern[];\r
- /**\r
- * Allow patterns to match filenames starting with a period (files & directories),\r
- * even if the pattern does not explicitly have a period in that spot.\r
- */\r
- dot: boolean;\r
- /**\r
- * Return `fs.Stats` with `path` property instead of file path.\r
- */\r
- stats: boolean;\r
- /**\r
- * Return only files.\r
- */\r
- onlyFiles: boolean;\r
- /**\r
- * Return only directories.\r
- */\r
- onlyDirectories: boolean;\r
- /**\r
- * Follow symlinked directories when expanding `**` patterns.\r
- */\r
- followSymlinkedDirectories: boolean;\r
- /**\r
- * Prevent duplicate results.\r
- */\r
- unique: boolean;\r
- /**\r
- * Add a `/` character to directory entries.\r
- */\r
- markDirectories: boolean;\r
- /**\r
- * Return absolute paths for matched entries.\r
- */\r
- absolute: boolean;\r
- /**\r
- * Disable expansion of brace patterns.\r
- */\r
- nobrace: boolean;\r
- /**\r
- * Enable expansion of brace patterns.\r
- */\r
- brace: boolean;\r
- /**\r
- * Disable matching with globstars (`**`).\r
- */\r
- noglobstar: boolean;\r
- /**\r
- * Enable matching with globstars (`**`).\r
- */\r
- globstar: boolean;\r
- /**\r
- * Disable extglob support, so that extglobs are regarded as literal characters.\r
- */\r
- noext: boolean;\r
- /**\r
- * Enable extglob support, so that extglobs are regarded as literal characters.\r
- */\r
- extension: boolean;\r
- /**\r
- * Disable a case-insensitive regex for matching files.\r
- */\r
- nocase: boolean;\r
- /**\r
- * Enable a case-insensitive regex for matching files.\r
- */\r
- case: boolean;\r
- /**\r
- * Allow glob patterns without slashes to match a file path based on its basename.\r
- * For example, `a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`.\r
- */\r
- matchBase: boolean;\r
- /**\r
- * Allows you to transform a path or `fs.Stats` object before sending to the array.\r
- */\r
- transform: TransformFunction<T> | null;\r
-}\r
-export declare type IPartialOptions<T = EntryItem> = Partial<IOptions<T>>;\r
-export declare function prepare(options?: IPartialOptions): IOptions;\r