@amabeth/repeating-wheel-picker 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +57 -44
  3. package/example/index.ts +8 -0
  4. package/example/node_modules/@expo/cli/static/template/+html.tsx +28 -0
  5. package/example/node_modules/@expo/cli/static/template/+native-intent.ts +9 -0
  6. package/example/node_modules/@expo/cli/static/template/[...rsc]+api.ts +16 -0
  7. package/example/node_modules/ansi-styles/index.d.ts +345 -0
  8. package/example/node_modules/chalk/index.d.ts +415 -0
  9. package/example/node_modules/commander/typings/index.d.ts +627 -0
  10. package/example/node_modules/expo/Expo.podspec +108 -0
  11. package/example/node_modules/expo/build/Expo.d.ts +8 -0
  12. package/example/node_modules/expo/build/Expo.fx.d.ts +4 -0
  13. package/example/node_modules/expo/build/Expo.fx.web.d.ts +3 -0
  14. package/example/node_modules/expo/build/devtools/DevToolsPluginClient.d.ts +72 -0
  15. package/example/node_modules/expo/build/devtools/DevToolsPluginClientFactory.d.ts +16 -0
  16. package/example/node_modules/expo/build/devtools/DevToolsPluginClientImplApp.d.ts +15 -0
  17. package/example/node_modules/expo/build/devtools/DevToolsPluginClientImplBrowser.d.ts +14 -0
  18. package/example/node_modules/expo/build/devtools/MessageFramePacker.d.ts +50 -0
  19. package/example/node_modules/expo/build/devtools/ProtocolVersion.d.ts +7 -0
  20. package/example/node_modules/expo/build/devtools/WebSocketBackingStore.d.ts +10 -0
  21. package/example/node_modules/expo/build/devtools/WebSocketWithReconnect.d.ts +81 -0
  22. package/example/node_modules/expo/build/devtools/devtools.types.d.ts +42 -0
  23. package/example/node_modules/expo/build/devtools/getConnectionInfo.d.ts +6 -0
  24. package/example/node_modules/expo/build/devtools/getConnectionInfo.native.d.ts +6 -0
  25. package/example/node_modules/expo/build/devtools/index.d.ts +12 -0
  26. package/example/node_modules/expo/build/devtools/logger.d.ts +6 -0
  27. package/example/node_modules/expo/build/dom/base.d.ts +5 -0
  28. package/example/node_modules/expo/build/dom/dom-entry.d.ts +3 -0
  29. package/example/node_modules/expo/build/dom/dom-hooks.d.ts +8 -0
  30. package/example/node_modules/expo/build/dom/dom.d.ts +5 -0
  31. package/example/node_modules/expo/build/dom/dom.types.d.ts +34 -0
  32. package/example/node_modules/expo/build/dom/dom.web.d.ts +3 -0
  33. package/example/node_modules/expo/build/dom/global-events.d.ts +4 -0
  34. package/example/node_modules/expo/build/dom/injection.d.ts +9 -0
  35. package/example/node_modules/expo/build/dom/internal.d.ts +3 -0
  36. package/example/node_modules/expo/build/dom/internal.web.d.ts +2 -0
  37. package/example/node_modules/expo/build/dom/marshal.d.ts +4 -0
  38. package/example/node_modules/expo/build/dom/webview/ExpoDOMWebView.d.ts +6 -0
  39. package/example/node_modules/expo/build/dom/webview/RNWebView.d.ts +7 -0
  40. package/example/node_modules/expo/build/dom/webview/useDebugZeroHeight.d.ts +12 -0
  41. package/example/node_modules/expo/build/dom/webview-wrapper.d.ts +16 -0
  42. package/example/node_modules/expo/build/environment/DevLoadingView.d.ts +3 -0
  43. package/example/node_modules/expo/build/environment/DevLoadingView.web.d.ts +3 -0
  44. package/example/node_modules/expo/build/environment/DevLoadingViewNativeModule.d.ts +9 -0
  45. package/example/node_modules/expo/build/environment/DevLoadingViewNativeModule.native.d.ts +3 -0
  46. package/example/node_modules/expo/build/environment/ExpoGo.d.ts +31 -0
  47. package/example/node_modules/expo/build/environment/ExpoGo.web.d.ts +3 -0
  48. package/example/node_modules/expo/build/environment/getInitialSafeArea.d.ts +7 -0
  49. package/example/node_modules/expo/build/environment/getInitialSafeArea.native.d.ts +11 -0
  50. package/example/node_modules/expo/build/errors/AppEntryNotFound.d.ts +2 -0
  51. package/example/node_modules/expo/build/errors/ExpoErrorManager.d.ts +8 -0
  52. package/example/node_modules/expo/build/errors/ExpoErrorManager.native.d.ts +4 -0
  53. package/example/node_modules/expo/build/hooks/useEvent.d.ts +59 -0
  54. package/example/node_modules/expo/build/launch/registerRootComponent.d.ts +30 -0
  55. package/example/node_modules/expo/build/launch/withDevTools.d.ts +3 -0
  56. package/example/node_modules/expo/build/launch/withDevTools.ios.d.ts +7 -0
  57. package/example/node_modules/expo/build/launch/withDevTools.web.d.ts +3 -0
  58. package/example/node_modules/expo/build/timer/polyfillNextTick.d.ts +6 -0
  59. package/example/node_modules/expo/build/utils/blobUtils.d.ts +9 -0
  60. package/example/node_modules/expo/build/utils/getBundleUrl.d.ts +2 -0
  61. package/example/node_modules/expo/build/utils/getBundleUrl.native.d.ts +2 -0
  62. package/example/node_modules/expo/build/utils/getBundleUrl.web.d.ts +2 -0
  63. package/example/node_modules/expo/build/winter/FormData.d.ts +49 -0
  64. package/example/node_modules/expo/build/winter/ImportMetaRegistry.d.ts +9 -0
  65. package/example/node_modules/expo/build/winter/TextDecoder.d.ts +20 -0
  66. package/example/node_modules/expo/build/winter/fetch/ExpoFetchModule.d.ts +2 -0
  67. package/example/node_modules/expo/build/winter/fetch/ExpoFetchModule.web.d.ts +10 -0
  68. package/example/node_modules/expo/build/winter/fetch/FetchErrors.d.ts +8 -0
  69. package/example/node_modules/expo/build/winter/fetch/FetchResponse.d.ts +31 -0
  70. package/example/node_modules/expo/build/winter/fetch/NativeRequest.d.ts +30 -0
  71. package/example/node_modules/expo/build/winter/fetch/RequestUtils.d.ts +21 -0
  72. package/example/node_modules/expo/build/winter/fetch/convertFormData.d.ts +19 -0
  73. package/example/node_modules/expo/build/winter/fetch/fetch.d.ts +4 -0
  74. package/example/node_modules/expo/build/winter/fetch/fetch.types.d.ts +16 -0
  75. package/example/node_modules/expo/build/winter/fetch/fetch.web.d.ts +2 -0
  76. package/example/node_modules/expo/build/winter/fetch/index.d.ts +3 -0
  77. package/example/node_modules/expo/build/winter/index.d.ts +2 -0
  78. package/example/node_modules/expo/build/winter/runtime.d.ts +2 -0
  79. package/example/node_modules/expo/build/winter/runtime.native.d.ts +2 -0
  80. package/example/node_modules/expo/build/winter/url.d.ts +23 -0
  81. package/example/node_modules/expo/config-plugins.d.ts +1 -0
  82. package/example/node_modules/expo/config.d.ts +1 -0
  83. package/example/node_modules/expo/devtools.d.ts +1 -0
  84. package/example/node_modules/expo/dom/global.d.ts +1 -0
  85. package/example/node_modules/expo/dom/index.d.ts +1 -0
  86. package/example/node_modules/expo/dom/internal.d.ts +1 -0
  87. package/example/node_modules/expo/fetch.d.ts +1 -0
  88. package/example/node_modules/expo/fingerprint.d.ts +1 -0
  89. package/example/node_modules/expo/metro-config.d.ts +1 -0
  90. package/example/node_modules/expo/react-native.config.js +50 -0
  91. package/example/node_modules/expo/src/Expo.fx.tsx +53 -0
  92. package/example/node_modules/expo/src/Expo.fx.web.tsx +21 -0
  93. package/example/node_modules/expo/src/Expo.ts +30 -0
  94. package/example/node_modules/expo/src/devtools/DevToolsPluginClient.ts +240 -0
  95. package/example/node_modules/expo/src/devtools/DevToolsPluginClientFactory.ts +73 -0
  96. package/example/node_modules/expo/src/devtools/DevToolsPluginClientImplApp.ts +56 -0
  97. package/example/node_modules/expo/src/devtools/DevToolsPluginClientImplBrowser.ts +38 -0
  98. package/example/node_modules/expo/src/devtools/MessageFramePacker.ts +235 -0
  99. package/example/node_modules/expo/src/devtools/ProtocolVersion.ts +6 -0
  100. package/example/node_modules/expo/src/devtools/WebSocketBackingStore.ts +10 -0
  101. package/example/node_modules/expo/src/devtools/WebSocketWithReconnect.ts +318 -0
  102. package/example/node_modules/expo/src/devtools/devtools.types.ts +50 -0
  103. package/example/node_modules/expo/src/devtools/getConnectionInfo.native.ts +18 -0
  104. package/example/node_modules/expo/src/devtools/getConnectionInfo.ts +16 -0
  105. package/example/node_modules/expo/src/devtools/index.ts +53 -0
  106. package/example/node_modules/expo/src/devtools/logger.ts +29 -0
  107. package/example/node_modules/expo/src/dom/base.ts +62 -0
  108. package/example/node_modules/expo/src/dom/dom-entry.tsx +128 -0
  109. package/example/node_modules/expo/src/dom/dom-hooks.ts +46 -0
  110. package/example/node_modules/expo/src/dom/dom.ts +8 -0
  111. package/example/node_modules/expo/src/dom/dom.types.ts +39 -0
  112. package/example/node_modules/expo/src/dom/dom.web.ts +6 -0
  113. package/example/node_modules/expo/src/dom/global-events.ts +16 -0
  114. package/example/node_modules/expo/src/dom/injection.ts +42 -0
  115. package/example/node_modules/expo/src/dom/internal.ts +5 -0
  116. package/example/node_modules/expo/src/dom/internal.web.ts +1 -0
  117. package/example/node_modules/expo/src/dom/marshal.tsx +116 -0
  118. package/example/node_modules/expo/src/dom/webview/ExpoDOMWebView.ts +10 -0
  119. package/example/node_modules/expo/src/dom/webview/RNWebView.ts +12 -0
  120. package/example/node_modules/expo/src/dom/webview/useDebugZeroHeight.ts +62 -0
  121. package/example/node_modules/expo/src/dom/webview-wrapper.tsx +253 -0
  122. package/example/node_modules/expo/src/environment/DevLoadingView.tsx +123 -0
  123. package/example/node_modules/expo/src/environment/DevLoadingView.web.tsx +135 -0
  124. package/example/node_modules/expo/src/environment/DevLoadingViewNativeModule.native.ts +3 -0
  125. package/example/node_modules/expo/src/environment/DevLoadingViewNativeModule.ts +7 -0
  126. package/example/node_modules/expo/src/environment/ExpoGo.ts +53 -0
  127. package/example/node_modules/expo/src/environment/ExpoGo.web.ts +7 -0
  128. package/example/node_modules/expo/src/environment/getInitialSafeArea.native.ts +16 -0
  129. package/example/node_modules/expo/src/environment/getInitialSafeArea.ts +8 -0
  130. package/example/node_modules/expo/src/errors/AppEntryNotFound.tsx +35 -0
  131. package/example/node_modules/expo/src/errors/ExpoErrorManager.native.ts +51 -0
  132. package/example/node_modules/expo/src/errors/ExpoErrorManager.ts +11 -0
  133. package/example/node_modules/expo/src/hooks/useEvent.ts +112 -0
  134. package/example/node_modules/expo/src/launch/registerRootComponent.tsx +64 -0
  135. package/example/node_modules/expo/src/launch/withDevTools.ios.tsx +47 -0
  136. package/example/node_modules/expo/src/launch/withDevTools.tsx +30 -0
  137. package/example/node_modules/expo/src/launch/withDevTools.web.tsx +23 -0
  138. package/example/node_modules/expo/src/timer/polyfillNextTick.ts +10 -0
  139. package/example/node_modules/expo/src/ts-declarations/console.d.ts +47 -0
  140. package/example/node_modules/expo/src/ts-declarations/global.d.ts +12 -0
  141. package/example/node_modules/expo/src/ts-declarations/react-native.d.ts +34 -0
  142. package/example/node_modules/expo/src/ts-declarations/whatwg-url-without-unicode.d.ts +186 -0
  143. package/example/node_modules/expo/src/utils/blobUtils.ts +23 -0
  144. package/example/node_modules/expo/src/utils/getBundleUrl.native.ts +17 -0
  145. package/example/node_modules/expo/src/utils/getBundleUrl.ts +5 -0
  146. package/example/node_modules/expo/src/utils/getBundleUrl.web.ts +21 -0
  147. package/example/node_modules/expo/src/winter/FormData.ts +222 -0
  148. package/example/node_modules/expo/src/winter/ImportMetaRegistry.ts +14 -0
  149. package/example/node_modules/expo/src/winter/TextDecoder.ts +429 -0
  150. package/example/node_modules/expo/src/winter/fetch/ExpoFetchModule.ts +3 -0
  151. package/example/node_modules/expo/src/winter/fetch/ExpoFetchModule.web.ts +7 -0
  152. package/example/node_modules/expo/src/winter/fetch/FetchErrors.ts +11 -0
  153. package/example/node_modules/expo/src/winter/fetch/FetchResponse.ts +146 -0
  154. package/example/node_modules/expo/src/winter/fetch/NativeRequest.ts +38 -0
  155. package/example/node_modules/expo/src/winter/fetch/RequestUtils.ts +124 -0
  156. package/example/node_modules/expo/src/winter/fetch/convertFormData.ts +92 -0
  157. package/example/node_modules/expo/src/winter/fetch/fetch.ts +59 -0
  158. package/example/node_modules/expo/src/winter/fetch/fetch.types.ts +17 -0
  159. package/example/node_modules/expo/src/winter/fetch/fetch.web.ts +1 -0
  160. package/example/node_modules/expo/src/winter/fetch/index.ts +2 -0
  161. package/example/node_modules/expo/src/winter/index.ts +1 -0
  162. package/example/node_modules/expo/src/winter/runtime.native.ts +41 -0
  163. package/example/node_modules/expo/src/winter/runtime.ts +5 -0
  164. package/example/node_modules/expo/src/winter/url.ts +116 -0
  165. package/example/node_modules/expo/types/global.d.ts +38 -0
  166. package/example/node_modules/expo/types/index.d.ts +3 -0
  167. package/example/node_modules/expo/types/metro-require.d.ts +52 -0
  168. package/example/node_modules/expo/types/react-native-web.d.ts +291 -0
  169. package/example/node_modules/expo-modules-autolinking/build/ExpoModuleConfig.d.ts +85 -0
  170. package/example/node_modules/expo-modules-autolinking/build/autolinking/findModules.d.ts +5 -0
  171. package/example/node_modules/expo-modules-autolinking/build/autolinking/generatePackageList.d.ts +11 -0
  172. package/example/node_modules/expo-modules-autolinking/build/autolinking/getConfiguration.d.ts +2 -0
  173. package/example/node_modules/expo-modules-autolinking/build/autolinking/index.d.ts +17 -0
  174. package/example/node_modules/expo-modules-autolinking/build/autolinking/mergeLinkingOptions.d.ts +21 -0
  175. package/example/node_modules/expo-modules-autolinking/build/autolinking/resolveModules.d.ts +9 -0
  176. package/example/node_modules/expo-modules-autolinking/build/autolinking/utils.d.ts +6 -0
  177. package/example/node_modules/expo-modules-autolinking/build/autolinking/verifySearchResults.d.ts +5 -0
  178. package/example/node_modules/expo-modules-autolinking/build/fileUtils.d.ts +18 -0
  179. package/example/node_modules/expo-modules-autolinking/build/index.d.ts +1 -0
  180. package/example/node_modules/expo-modules-autolinking/build/platforms/android.d.ts +38 -0
  181. package/example/node_modules/expo-modules-autolinking/build/platforms/apple.d.ts +15 -0
  182. package/example/node_modules/expo-modules-autolinking/build/platforms/devtools.d.ts +3 -0
  183. package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/androidResolver.d.ts +20 -0
  184. package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/config.d.ts +5 -0
  185. package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/index.d.ts +2 -0
  186. package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/iosResolver.d.ts +2 -0
  187. package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/reactNativeConfig.d.ts +13 -0
  188. package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/reactNativeConfig.types.d.ts +95 -0
  189. package/example/node_modules/expo-modules-autolinking/build/types.d.ts +319 -0
  190. package/example/node_modules/expo-modules-autolinking/e2e/TestUtils.ts +53 -0
  191. package/example/node_modules/expo-modules-autolinking/exports.d.ts +1 -0
  192. package/example/node_modules/expo-modules-autolinking/src/ExpoModuleConfig.ts +181 -0
  193. package/example/node_modules/expo-modules-autolinking/src/autolinking/findModules.ts +259 -0
  194. package/example/node_modules/expo-modules-autolinking/src/autolinking/generatePackageList.ts +46 -0
  195. package/example/node_modules/expo-modules-autolinking/src/autolinking/getConfiguration.ts +7 -0
  196. package/example/node_modules/expo-modules-autolinking/src/autolinking/index.ts +45 -0
  197. package/example/node_modules/expo-modules-autolinking/src/autolinking/mergeLinkingOptions.ts +127 -0
  198. package/example/node_modules/expo-modules-autolinking/src/autolinking/resolveModules.ts +46 -0
  199. package/example/node_modules/expo-modules-autolinking/src/autolinking/utils.ts +37 -0
  200. package/example/node_modules/expo-modules-autolinking/src/autolinking/verifySearchResults.ts +33 -0
  201. package/example/node_modules/expo-modules-autolinking/src/fileUtils.ts +64 -0
  202. package/example/node_modules/expo-modules-autolinking/src/index.ts +262 -0
  203. package/example/node_modules/expo-modules-autolinking/src/platforms/android.ts +303 -0
  204. package/example/node_modules/expo-modules-autolinking/src/platforms/apple.ts +292 -0
  205. package/example/node_modules/expo-modules-autolinking/src/platforms/devtools.ts +25 -0
  206. package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/androidResolver.ts +264 -0
  207. package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/config.ts +67 -0
  208. package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/index.ts +2 -0
  209. package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/iosResolver.ts +37 -0
  210. package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/reactNativeConfig.ts +245 -0
  211. package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/reactNativeConfig.types.ts +107 -0
  212. package/example/node_modules/expo-modules-autolinking/src/types.ts +384 -0
  213. package/example/node_modules/find-up/index.d.ts +138 -0
  214. package/example/node_modules/glob/dist/commonjs/glob.d.ts +388 -0
  215. package/example/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
  216. package/example/node_modules/glob/dist/commonjs/ignore.d.ts +24 -0
  217. package/example/node_modules/glob/dist/commonjs/index.d.ts +97 -0
  218. package/example/node_modules/glob/dist/commonjs/pattern.d.ts +76 -0
  219. package/example/node_modules/glob/dist/commonjs/processor.d.ts +59 -0
  220. package/example/node_modules/glob/dist/commonjs/walker.d.ts +97 -0
  221. package/example/node_modules/glob/dist/esm/glob.d.ts +388 -0
  222. package/example/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
  223. package/example/node_modules/glob/dist/esm/ignore.d.ts +24 -0
  224. package/example/node_modules/glob/dist/esm/index.d.ts +97 -0
  225. package/example/node_modules/glob/dist/esm/pattern.d.ts +76 -0
  226. package/example/node_modules/glob/dist/esm/processor.d.ts +59 -0
  227. package/example/node_modules/glob/dist/esm/walker.d.ts +97 -0
  228. package/example/node_modules/locate-path/index.d.ts +83 -0
  229. package/example/node_modules/log-symbols/node_modules/chalk/types/index.d.ts +97 -0
  230. package/example/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
  231. package/example/node_modules/minimatch/dist/commonjs/ast.d.ts +20 -0
  232. package/example/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
  233. package/example/node_modules/minimatch/dist/commonjs/escape.d.ts +12 -0
  234. package/example/node_modules/minimatch/dist/commonjs/index.d.ts +94 -0
  235. package/example/node_modules/minimatch/dist/commonjs/unescape.d.ts +17 -0
  236. package/example/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
  237. package/example/node_modules/minimatch/dist/esm/ast.d.ts +20 -0
  238. package/example/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
  239. package/example/node_modules/minimatch/dist/esm/escape.d.ts +12 -0
  240. package/example/node_modules/minimatch/dist/esm/index.d.ts +94 -0
  241. package/example/node_modules/minimatch/dist/esm/unescape.d.ts +17 -0
  242. package/example/node_modules/ora/index.d.ts +257 -0
  243. package/example/node_modules/ora/node_modules/chalk/types/index.d.ts +97 -0
  244. package/example/node_modules/ora/node_modules/strip-ansi/index.d.ts +15 -0
  245. package/example/node_modules/p-locate/index.d.ts +53 -0
  246. package/example/node_modules/path-exists/index.d.ts +28 -0
  247. package/example/package.json +29 -0
  248. package/example/src/constants/styles.ts +43 -0
  249. package/example/src/hooks/useComponentHeight.ts +13 -0
  250. package/example/src/scenes/app.tsx +33 -0
  251. package/example/src/scenes/booleanPicker.tsx +60 -0
  252. package/example/src/scenes/customTypePicker.tsx +83 -0
  253. package/example/src/scenes/numberPicker.tsx +75 -0
  254. package/example/src/scenes/stringPicker.tsx +64 -0
  255. package/lib/module/index.js +6 -6
  256. package/lib/module/index.js.map +1 -1
  257. package/package.json +168 -177
  258. package/src/index.tsx +0 -507
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Single-use utility classes to provide functionality to the {@link Glob}
3
+ * methods.
4
+ *
5
+ * @module
6
+ */
7
+ import { Minipass } from 'minipass';
8
+ import { Path } from 'path-scurry';
9
+ import { IgnoreLike } from './ignore.js';
10
+ import { Pattern } from './pattern.js';
11
+ import { Processor } from './processor.js';
12
+ export interface GlobWalkerOpts {
13
+ absolute?: boolean;
14
+ allowWindowsEscape?: boolean;
15
+ cwd?: string | URL;
16
+ dot?: boolean;
17
+ dotRelative?: boolean;
18
+ follow?: boolean;
19
+ ignore?: string | string[] | IgnoreLike;
20
+ mark?: boolean;
21
+ matchBase?: boolean;
22
+ maxDepth?: number;
23
+ nobrace?: boolean;
24
+ nocase?: boolean;
25
+ nodir?: boolean;
26
+ noext?: boolean;
27
+ noglobstar?: boolean;
28
+ platform?: NodeJS.Platform;
29
+ posix?: boolean;
30
+ realpath?: boolean;
31
+ root?: string;
32
+ stat?: boolean;
33
+ signal?: AbortSignal;
34
+ windowsPathsNoEscape?: boolean;
35
+ withFileTypes?: boolean;
36
+ includeChildMatches?: boolean;
37
+ }
38
+ export type GWOFileTypesTrue = GlobWalkerOpts & {
39
+ withFileTypes: true;
40
+ };
41
+ export type GWOFileTypesFalse = GlobWalkerOpts & {
42
+ withFileTypes: false;
43
+ };
44
+ export type GWOFileTypesUnset = GlobWalkerOpts & {
45
+ withFileTypes?: undefined;
46
+ };
47
+ export type Result<O extends GlobWalkerOpts> = O extends GWOFileTypesTrue ? Path : O extends GWOFileTypesFalse ? string : O extends GWOFileTypesUnset ? string : Path | string;
48
+ export type Matches<O extends GlobWalkerOpts> = O extends GWOFileTypesTrue ? Set<Path> : O extends GWOFileTypesFalse ? Set<string> : O extends GWOFileTypesUnset ? Set<string> : Set<Path | string>;
49
+ export type MatchStream<O extends GlobWalkerOpts> = Minipass<Result<O>, Result<O>>;
50
+ /**
51
+ * basic walking utilities that all the glob walker types use
52
+ */
53
+ export declare abstract class GlobUtil<O extends GlobWalkerOpts = GlobWalkerOpts> {
54
+ #private;
55
+ path: Path;
56
+ patterns: Pattern[];
57
+ opts: O;
58
+ seen: Set<Path>;
59
+ paused: boolean;
60
+ aborted: boolean;
61
+ signal?: AbortSignal;
62
+ maxDepth: number;
63
+ includeChildMatches: boolean;
64
+ constructor(patterns: Pattern[], path: Path, opts: O);
65
+ pause(): void;
66
+ resume(): void;
67
+ onResume(fn: () => any): void;
68
+ matchCheck(e: Path, ifDir: boolean): Promise<Path | undefined>;
69
+ matchCheckTest(e: Path | undefined, ifDir: boolean): Path | undefined;
70
+ matchCheckSync(e: Path, ifDir: boolean): Path | undefined;
71
+ abstract matchEmit(p: Result<O>): void;
72
+ abstract matchEmit(p: string | Path): void;
73
+ matchFinish(e: Path, absolute: boolean): void;
74
+ match(e: Path, absolute: boolean, ifDir: boolean): Promise<void>;
75
+ matchSync(e: Path, absolute: boolean, ifDir: boolean): void;
76
+ walkCB(target: Path, patterns: Pattern[], cb: () => any): void;
77
+ walkCB2(target: Path, patterns: Pattern[], processor: Processor, cb: () => any): any;
78
+ walkCB3(target: Path, entries: Path[], processor: Processor, cb: () => any): void;
79
+ walkCBSync(target: Path, patterns: Pattern[], cb: () => any): void;
80
+ walkCB2Sync(target: Path, patterns: Pattern[], processor: Processor, cb: () => any): any;
81
+ walkCB3Sync(target: Path, entries: Path[], processor: Processor, cb: () => any): void;
82
+ }
83
+ export declare class GlobWalker<O extends GlobWalkerOpts = GlobWalkerOpts> extends GlobUtil<O> {
84
+ matches: Set<Result<O>>;
85
+ constructor(patterns: Pattern[], path: Path, opts: O);
86
+ matchEmit(e: Result<O>): void;
87
+ walk(): Promise<Set<Result<O>>>;
88
+ walkSync(): Set<Result<O>>;
89
+ }
90
+ export declare class GlobStream<O extends GlobWalkerOpts = GlobWalkerOpts> extends GlobUtil<O> {
91
+ results: Minipass<Result<O>, Result<O>>;
92
+ constructor(patterns: Pattern[], path: Path, opts: O);
93
+ matchEmit(e: Result<O>): void;
94
+ stream(): MatchStream<O>;
95
+ streamSync(): MatchStream<O>;
96
+ }
97
+ //# sourceMappingURL=walker.d.ts.map
@@ -0,0 +1,388 @@
1
+ import { Minimatch } from 'minimatch';
2
+ import { Minipass } from 'minipass';
3
+ import { FSOption, Path, PathScurry } from 'path-scurry';
4
+ import { IgnoreLike } from './ignore.js';
5
+ import { Pattern } from './pattern.js';
6
+ export type MatchSet = Minimatch['set'];
7
+ export type GlobParts = Exclude<Minimatch['globParts'], undefined>;
8
+ /**
9
+ * A `GlobOptions` object may be provided to any of the exported methods, and
10
+ * must be provided to the `Glob` constructor.
11
+ *
12
+ * All options are optional, boolean, and false by default, unless otherwise
13
+ * noted.
14
+ *
15
+ * All resolved options are added to the Glob object as properties.
16
+ *
17
+ * If you are running many `glob` operations, you can pass a Glob object as the
18
+ * `options` argument to a subsequent operation to share the previously loaded
19
+ * cache.
20
+ */
21
+ export interface GlobOptions {
22
+ /**
23
+ * Set to `true` to always receive absolute paths for
24
+ * matched files. Set to `false` to always return relative paths.
25
+ *
26
+ * When this option is not set, absolute paths are returned for patterns
27
+ * that are absolute, and otherwise paths are returned that are relative
28
+ * to the `cwd` setting.
29
+ *
30
+ * This does _not_ make an extra system call to get
31
+ * the realpath, it only does string path resolution.
32
+ *
33
+ * Conflicts with {@link withFileTypes}
34
+ */
35
+ absolute?: boolean;
36
+ /**
37
+ * Set to false to enable {@link windowsPathsNoEscape}
38
+ *
39
+ * @deprecated
40
+ */
41
+ allowWindowsEscape?: boolean;
42
+ /**
43
+ * The current working directory in which to search. Defaults to
44
+ * `process.cwd()`.
45
+ *
46
+ * May be eiher a string path or a `file://` URL object or string.
47
+ */
48
+ cwd?: string | URL;
49
+ /**
50
+ * Include `.dot` files in normal matches and `globstar`
51
+ * matches. Note that an explicit dot in a portion of the pattern
52
+ * will always match dot files.
53
+ */
54
+ dot?: boolean;
55
+ /**
56
+ * Prepend all relative path strings with `./` (or `.\` on Windows).
57
+ *
58
+ * Without this option, returned relative paths are "bare", so instead of
59
+ * returning `'./foo/bar'`, they are returned as `'foo/bar'`.
60
+ *
61
+ * Relative patterns starting with `'../'` are not prepended with `./`, even
62
+ * if this option is set.
63
+ */
64
+ dotRelative?: boolean;
65
+ /**
66
+ * Follow symlinked directories when expanding `**`
67
+ * patterns. This can result in a lot of duplicate references in
68
+ * the presence of cyclic links, and make performance quite bad.
69
+ *
70
+ * By default, a `**` in a pattern will follow 1 symbolic link if
71
+ * it is not the first item in the pattern, or none if it is the
72
+ * first item in the pattern, following the same behavior as Bash.
73
+ */
74
+ follow?: boolean;
75
+ /**
76
+ * string or string[], or an object with `ignore` and `ignoreChildren`
77
+ * methods.
78
+ *
79
+ * If a string or string[] is provided, then this is treated as a glob
80
+ * pattern or array of glob patterns to exclude from matches. To ignore all
81
+ * children within a directory, as well as the entry itself, append `'/**'`
82
+ * to the ignore pattern.
83
+ *
84
+ * **Note** `ignore` patterns are _always_ in `dot:true` mode, regardless of
85
+ * any other settings.
86
+ *
87
+ * If an object is provided that has `ignored(path)` and/or
88
+ * `childrenIgnored(path)` methods, then these methods will be called to
89
+ * determine whether any Path is a match or if its children should be
90
+ * traversed, respectively.
91
+ */
92
+ ignore?: string | string[] | IgnoreLike;
93
+ /**
94
+ * Treat brace expansion like `{a,b}` as a "magic" pattern. Has no
95
+ * effect if {@link nobrace} is set.
96
+ *
97
+ * Only has effect on the {@link hasMagic} function.
98
+ */
99
+ magicalBraces?: boolean;
100
+ /**
101
+ * Add a `/` character to directory matches. Note that this requires
102
+ * additional stat calls in some cases.
103
+ */
104
+ mark?: boolean;
105
+ /**
106
+ * Perform a basename-only match if the pattern does not contain any slash
107
+ * characters. That is, `*.js` would be treated as equivalent to
108
+ * `**\/*.js`, matching all js files in all directories.
109
+ */
110
+ matchBase?: boolean;
111
+ /**
112
+ * Limit the directory traversal to a given depth below the cwd.
113
+ * Note that this does NOT prevent traversal to sibling folders,
114
+ * root patterns, and so on. It only limits the maximum folder depth
115
+ * that the walk will descend, relative to the cwd.
116
+ */
117
+ maxDepth?: number;
118
+ /**
119
+ * Do not expand `{a,b}` and `{1..3}` brace sets.
120
+ */
121
+ nobrace?: boolean;
122
+ /**
123
+ * Perform a case-insensitive match. This defaults to `true` on macOS and
124
+ * Windows systems, and `false` on all others.
125
+ *
126
+ * **Note** `nocase` should only be explicitly set when it is
127
+ * known that the filesystem's case sensitivity differs from the
128
+ * platform default. If set `true` on case-sensitive file
129
+ * systems, or `false` on case-insensitive file systems, then the
130
+ * walk may return more or less results than expected.
131
+ */
132
+ nocase?: boolean;
133
+ /**
134
+ * Do not match directories, only files. (Note: to match
135
+ * _only_ directories, put a `/` at the end of the pattern.)
136
+ */
137
+ nodir?: boolean;
138
+ /**
139
+ * Do not match "extglob" patterns such as `+(a|b)`.
140
+ */
141
+ noext?: boolean;
142
+ /**
143
+ * Do not match `**` against multiple filenames. (Ie, treat it as a normal
144
+ * `*` instead.)
145
+ *
146
+ * Conflicts with {@link matchBase}
147
+ */
148
+ noglobstar?: boolean;
149
+ /**
150
+ * Defaults to value of `process.platform` if available, or `'linux'` if
151
+ * not. Setting `platform:'win32'` on non-Windows systems may cause strange
152
+ * behavior.
153
+ */
154
+ platform?: NodeJS.Platform;
155
+ /**
156
+ * Set to true to call `fs.realpath` on all of the
157
+ * results. In the case of an entry that cannot be resolved, the
158
+ * entry is omitted. This incurs a slight performance penalty, of
159
+ * course, because of the added system calls.
160
+ */
161
+ realpath?: boolean;
162
+ /**
163
+ *
164
+ * A string path resolved against the `cwd` option, which
165
+ * is used as the starting point for absolute patterns that start
166
+ * with `/`, (but not drive letters or UNC paths on Windows).
167
+ *
168
+ * Note that this _doesn't_ necessarily limit the walk to the
169
+ * `root` directory, and doesn't affect the cwd starting point for
170
+ * non-absolute patterns. A pattern containing `..` will still be
171
+ * able to traverse out of the root directory, if it is not an
172
+ * actual root directory on the filesystem, and any non-absolute
173
+ * patterns will be matched in the `cwd`. For example, the
174
+ * pattern `/../*` with `{root:'/some/path'}` will return all
175
+ * files in `/some`, not all files in `/some/path`. The pattern
176
+ * `*` with `{root:'/some/path'}` will return all the entries in
177
+ * the cwd, not the entries in `/some/path`.
178
+ *
179
+ * To start absolute and non-absolute patterns in the same
180
+ * path, you can use `{root:''}`. However, be aware that on
181
+ * Windows systems, a pattern like `x:/*` or `//host/share/*` will
182
+ * _always_ start in the `x:/` or `//host/share` directory,
183
+ * regardless of the `root` setting.
184
+ */
185
+ root?: string;
186
+ /**
187
+ * A [PathScurry](http://npm.im/path-scurry) object used
188
+ * to traverse the file system. If the `nocase` option is set
189
+ * explicitly, then any provided `scurry` object must match this
190
+ * setting.
191
+ */
192
+ scurry?: PathScurry;
193
+ /**
194
+ * Call `lstat()` on all entries, whether required or not to determine
195
+ * if it's a valid match. When used with {@link withFileTypes}, this means
196
+ * that matches will include data such as modified time, permissions, and
197
+ * so on. Note that this will incur a performance cost due to the added
198
+ * system calls.
199
+ */
200
+ stat?: boolean;
201
+ /**
202
+ * An AbortSignal which will cancel the Glob walk when
203
+ * triggered.
204
+ */
205
+ signal?: AbortSignal;
206
+ /**
207
+ * Use `\\` as a path separator _only_, and
208
+ * _never_ as an escape character. If set, all `\\` characters are
209
+ * replaced with `/` in the pattern.
210
+ *
211
+ * Note that this makes it **impossible** to match against paths
212
+ * containing literal glob pattern characters, but allows matching
213
+ * with patterns constructed using `path.join()` and
214
+ * `path.resolve()` on Windows platforms, mimicking the (buggy!)
215
+ * behavior of Glob v7 and before on Windows. Please use with
216
+ * caution, and be mindful of [the caveat below about Windows
217
+ * paths](#windows). (For legacy reasons, this is also set if
218
+ * `allowWindowsEscape` is set to the exact value `false`.)
219
+ */
220
+ windowsPathsNoEscape?: boolean;
221
+ /**
222
+ * Return [PathScurry](http://npm.im/path-scurry)
223
+ * `Path` objects instead of strings. These are similar to a
224
+ * NodeJS `Dirent` object, but with additional methods and
225
+ * properties.
226
+ *
227
+ * Conflicts with {@link absolute}
228
+ */
229
+ withFileTypes?: boolean;
230
+ /**
231
+ * An fs implementation to override some or all of the defaults. See
232
+ * http://npm.im/path-scurry for details about what can be overridden.
233
+ */
234
+ fs?: FSOption;
235
+ /**
236
+ * Just passed along to Minimatch. Note that this makes all pattern
237
+ * matching operations slower and *extremely* noisy.
238
+ */
239
+ debug?: boolean;
240
+ /**
241
+ * Return `/` delimited paths, even on Windows.
242
+ *
243
+ * On posix systems, this has no effect. But, on Windows, it means that
244
+ * paths will be `/` delimited, and absolute paths will be their full
245
+ * resolved UNC forms, eg instead of `'C:\\foo\\bar'`, it would return
246
+ * `'//?/C:/foo/bar'`
247
+ */
248
+ posix?: boolean;
249
+ /**
250
+ * Do not match any children of any matches. For example, the pattern
251
+ * `**\/foo` would match `a/foo`, but not `a/foo/b/foo` in this mode.
252
+ *
253
+ * This is especially useful for cases like "find all `node_modules`
254
+ * folders, but not the ones in `node_modules`".
255
+ *
256
+ * In order to support this, the `Ignore` implementation must support an
257
+ * `add(pattern: string)` method. If using the default `Ignore` class, then
258
+ * this is fine, but if this is set to `false`, and a custom `Ignore` is
259
+ * provided that does not have an `add()` method, then it will throw an
260
+ * error.
261
+ *
262
+ * **Caveat** It *only* ignores matches that would be a descendant of a
263
+ * previous match, and only if that descendant is matched *after* the
264
+ * ancestor is encountered. Since the file system walk happens in
265
+ * indeterminate order, it's possible that a match will already be added
266
+ * before its ancestor, if multiple or braced patterns are used.
267
+ *
268
+ * For example:
269
+ *
270
+ * ```ts
271
+ * const results = await glob([
272
+ * // likely to match first, since it's just a stat
273
+ * 'a/b/c/d/e/f',
274
+ *
275
+ * // this pattern is more complicated! It must to various readdir()
276
+ * // calls and test the results against a regular expression, and that
277
+ * // is certainly going to take a little bit longer.
278
+ * //
279
+ * // So, later on, it encounters a match at 'a/b/c/d/e', but it's too
280
+ * // late to ignore a/b/c/d/e/f, because it's already been emitted.
281
+ * 'a/[bdf]/?/[a-z]/*',
282
+ * ], { includeChildMatches: false })
283
+ * ```
284
+ *
285
+ * It's best to only set this to `false` if you can be reasonably sure that
286
+ * no components of the pattern will potentially match one another's file
287
+ * system descendants, or if the occasional included child entry will not
288
+ * cause problems.
289
+ *
290
+ * @default true
291
+ */
292
+ includeChildMatches?: boolean;
293
+ }
294
+ export type GlobOptionsWithFileTypesTrue = GlobOptions & {
295
+ withFileTypes: true;
296
+ absolute?: undefined;
297
+ mark?: undefined;
298
+ posix?: undefined;
299
+ };
300
+ export type GlobOptionsWithFileTypesFalse = GlobOptions & {
301
+ withFileTypes?: false;
302
+ };
303
+ export type GlobOptionsWithFileTypesUnset = GlobOptions & {
304
+ withFileTypes?: undefined;
305
+ };
306
+ export type Result<Opts> = Opts extends GlobOptionsWithFileTypesTrue ? Path : Opts extends GlobOptionsWithFileTypesFalse ? string : Opts extends GlobOptionsWithFileTypesUnset ? string : string | Path;
307
+ export type Results<Opts> = Result<Opts>[];
308
+ export type FileTypes<Opts> = Opts extends GlobOptionsWithFileTypesTrue ? true : Opts extends GlobOptionsWithFileTypesFalse ? false : Opts extends GlobOptionsWithFileTypesUnset ? false : boolean;
309
+ /**
310
+ * An object that can perform glob pattern traversals.
311
+ */
312
+ export declare class Glob<Opts extends GlobOptions> implements GlobOptions {
313
+ absolute?: boolean;
314
+ cwd: string;
315
+ root?: string;
316
+ dot: boolean;
317
+ dotRelative: boolean;
318
+ follow: boolean;
319
+ ignore?: string | string[] | IgnoreLike;
320
+ magicalBraces: boolean;
321
+ mark?: boolean;
322
+ matchBase: boolean;
323
+ maxDepth: number;
324
+ nobrace: boolean;
325
+ nocase: boolean;
326
+ nodir: boolean;
327
+ noext: boolean;
328
+ noglobstar: boolean;
329
+ pattern: string[];
330
+ platform: NodeJS.Platform;
331
+ realpath: boolean;
332
+ scurry: PathScurry;
333
+ stat: boolean;
334
+ signal?: AbortSignal;
335
+ windowsPathsNoEscape: boolean;
336
+ withFileTypes: FileTypes<Opts>;
337
+ includeChildMatches: boolean;
338
+ /**
339
+ * The options provided to the constructor.
340
+ */
341
+ opts: Opts;
342
+ /**
343
+ * An array of parsed immutable {@link Pattern} objects.
344
+ */
345
+ patterns: Pattern[];
346
+ /**
347
+ * All options are stored as properties on the `Glob` object.
348
+ *
349
+ * See {@link GlobOptions} for full options descriptions.
350
+ *
351
+ * Note that a previous `Glob` object can be passed as the
352
+ * `GlobOptions` to another `Glob` instantiation to re-use settings
353
+ * and caches with a new pattern.
354
+ *
355
+ * Traversal functions can be called multiple times to run the walk
356
+ * again.
357
+ */
358
+ constructor(pattern: string | string[], opts: Opts);
359
+ /**
360
+ * Returns a Promise that resolves to the results array.
361
+ */
362
+ walk(): Promise<Results<Opts>>;
363
+ /**
364
+ * synchronous {@link Glob.walk}
365
+ */
366
+ walkSync(): Results<Opts>;
367
+ /**
368
+ * Stream results asynchronously.
369
+ */
370
+ stream(): Minipass<Result<Opts>, Result<Opts>>;
371
+ /**
372
+ * Stream results synchronously.
373
+ */
374
+ streamSync(): Minipass<Result<Opts>, Result<Opts>>;
375
+ /**
376
+ * Default sync iteration function. Returns a Generator that
377
+ * iterates over the results.
378
+ */
379
+ iterateSync(): Generator<Result<Opts>, void, void>;
380
+ [Symbol.iterator](): Generator<Result<Opts>, void, void>;
381
+ /**
382
+ * Default async iteration function. Returns an AsyncGenerator that
383
+ * iterates over the results.
384
+ */
385
+ iterate(): AsyncGenerator<Result<Opts>, void, void>;
386
+ [Symbol.asyncIterator](): AsyncGenerator<Result<Opts>, void, void>;
387
+ }
388
+ //# sourceMappingURL=glob.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { GlobOptions } from './glob.js';
2
+ /**
3
+ * Return true if the patterns provided contain any magic glob characters,
4
+ * given the options provided.
5
+ *
6
+ * Brace expansion is not considered "magic" unless the `magicalBraces` option
7
+ * is set, as brace expansion just turns one string into an array of strings.
8
+ * So a pattern like `'x{a,b}y'` would return `false`, because `'xay'` and
9
+ * `'xby'` both do not contain any magic glob characters, and it's treated the
10
+ * same as if you had called it on `['xay', 'xby']`. When `magicalBraces:true`
11
+ * is in the options, brace expansion _is_ treated as a pattern having magic.
12
+ */
13
+ export declare const hasMagic: (pattern: string | string[], options?: GlobOptions) => boolean;
14
+ //# sourceMappingURL=has-magic.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { Minimatch, MinimatchOptions } from 'minimatch';
2
+ import { Path } from 'path-scurry';
3
+ import { GlobWalkerOpts } from './walker.js';
4
+ export interface IgnoreLike {
5
+ ignored?: (p: Path) => boolean;
6
+ childrenIgnored?: (p: Path) => boolean;
7
+ add?: (ignore: string) => void;
8
+ }
9
+ /**
10
+ * Class used to process ignored patterns
11
+ */
12
+ export declare class Ignore implements IgnoreLike {
13
+ relative: Minimatch[];
14
+ relativeChildren: Minimatch[];
15
+ absolute: Minimatch[];
16
+ absoluteChildren: Minimatch[];
17
+ platform: NodeJS.Platform;
18
+ mmopts: MinimatchOptions;
19
+ constructor(ignored: string[], { nobrace, nocase, noext, noglobstar, platform, }: GlobWalkerOpts);
20
+ add(ign: string): void;
21
+ ignored(p: Path): boolean;
22
+ childrenIgnored(p: Path): boolean;
23
+ }
24
+ //# sourceMappingURL=ignore.d.ts.map
@@ -0,0 +1,97 @@
1
+ import { Minipass } from 'minipass';
2
+ import { Path } from 'path-scurry';
3
+ import type { GlobOptions, GlobOptionsWithFileTypesFalse, GlobOptionsWithFileTypesTrue, GlobOptionsWithFileTypesUnset } from './glob.js';
4
+ import { Glob } from './glob.js';
5
+ export { escape, unescape } from 'minimatch';
6
+ export type { FSOption, Path, WalkOptions, WalkOptionsWithFileTypesTrue, WalkOptionsWithFileTypesUnset, } from 'path-scurry';
7
+ export { Glob } from './glob.js';
8
+ export type { GlobOptions, GlobOptionsWithFileTypesFalse, GlobOptionsWithFileTypesTrue, GlobOptionsWithFileTypesUnset, } from './glob.js';
9
+ export { hasMagic } from './has-magic.js';
10
+ export { Ignore } from './ignore.js';
11
+ export type { IgnoreLike } from './ignore.js';
12
+ export type { MatchStream } from './walker.js';
13
+ /**
14
+ * Syncronous form of {@link globStream}. Will read all the matches as fast as
15
+ * you consume them, even all in a single tick if you consume them immediately,
16
+ * but will still respond to backpressure if they're not consumed immediately.
17
+ */
18
+ export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Minipass<Path, Path>;
19
+ export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileTypesFalse): Minipass<string, string>;
20
+ export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileTypesUnset): Minipass<string, string>;
21
+ export declare function globStreamSync(pattern: string | string[], options: GlobOptions): Minipass<Path, Path> | Minipass<string, string>;
22
+ /**
23
+ * Return a stream that emits all the strings or `Path` objects and
24
+ * then emits `end` when completed.
25
+ */
26
+ export declare function globStream(pattern: string | string[], options: GlobOptionsWithFileTypesFalse): Minipass<string, string>;
27
+ export declare function globStream(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Minipass<Path, Path>;
28
+ export declare function globStream(pattern: string | string[], options?: GlobOptionsWithFileTypesUnset | undefined): Minipass<string, string>;
29
+ export declare function globStream(pattern: string | string[], options: GlobOptions): Minipass<Path, Path> | Minipass<string, string>;
30
+ /**
31
+ * Synchronous form of {@link glob}
32
+ */
33
+ export declare function globSync(pattern: string | string[], options: GlobOptionsWithFileTypesFalse): string[];
34
+ export declare function globSync(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Path[];
35
+ export declare function globSync(pattern: string | string[], options?: GlobOptionsWithFileTypesUnset | undefined): string[];
36
+ export declare function globSync(pattern: string | string[], options: GlobOptions): Path[] | string[];
37
+ /**
38
+ * Perform an asynchronous glob search for the pattern(s) specified. Returns
39
+ * [Path](https://isaacs.github.io/path-scurry/classes/PathBase) objects if the
40
+ * {@link withFileTypes} option is set to `true`. See {@link GlobOptions} for
41
+ * full option descriptions.
42
+ */
43
+ declare function glob_(pattern: string | string[], options?: GlobOptionsWithFileTypesUnset | undefined): Promise<string[]>;
44
+ declare function glob_(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Promise<Path[]>;
45
+ declare function glob_(pattern: string | string[], options: GlobOptionsWithFileTypesFalse): Promise<string[]>;
46
+ declare function glob_(pattern: string | string[], options: GlobOptions): Promise<Path[] | string[]>;
47
+ /**
48
+ * Return a sync iterator for walking glob pattern matches.
49
+ */
50
+ export declare function globIterateSync(pattern: string | string[], options?: GlobOptionsWithFileTypesUnset | undefined): Generator<string, void, void>;
51
+ export declare function globIterateSync(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Generator<Path, void, void>;
52
+ export declare function globIterateSync(pattern: string | string[], options: GlobOptionsWithFileTypesFalse): Generator<string, void, void>;
53
+ export declare function globIterateSync(pattern: string | string[], options: GlobOptions): Generator<Path, void, void> | Generator<string, void, void>;
54
+ /**
55
+ * Return an async iterator for walking glob pattern matches.
56
+ */
57
+ export declare function globIterate(pattern: string | string[], options?: GlobOptionsWithFileTypesUnset | undefined): AsyncGenerator<string, void, void>;
58
+ export declare function globIterate(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): AsyncGenerator<Path, void, void>;
59
+ export declare function globIterate(pattern: string | string[], options: GlobOptionsWithFileTypesFalse): AsyncGenerator<string, void, void>;
60
+ export declare function globIterate(pattern: string | string[], options: GlobOptions): AsyncGenerator<Path, void, void> | AsyncGenerator<string, void, void>;
61
+ export declare const streamSync: typeof globStreamSync;
62
+ export declare const stream: typeof globStream & {
63
+ sync: typeof globStreamSync;
64
+ };
65
+ export declare const iterateSync: typeof globIterateSync;
66
+ export declare const iterate: typeof globIterate & {
67
+ sync: typeof globIterateSync;
68
+ };
69
+ export declare const sync: typeof globSync & {
70
+ stream: typeof globStreamSync;
71
+ iterate: typeof globIterateSync;
72
+ };
73
+ export declare const glob: typeof glob_ & {
74
+ glob: typeof glob_;
75
+ globSync: typeof globSync;
76
+ sync: typeof globSync & {
77
+ stream: typeof globStreamSync;
78
+ iterate: typeof globIterateSync;
79
+ };
80
+ globStream: typeof globStream;
81
+ stream: typeof globStream & {
82
+ sync: typeof globStreamSync;
83
+ };
84
+ globStreamSync: typeof globStreamSync;
85
+ streamSync: typeof globStreamSync;
86
+ globIterate: typeof globIterate;
87
+ iterate: typeof globIterate & {
88
+ sync: typeof globIterateSync;
89
+ };
90
+ globIterateSync: typeof globIterateSync;
91
+ iterateSync: typeof globIterateSync;
92
+ Glob: typeof Glob;
93
+ hasMagic: (pattern: string | string[], options?: GlobOptions) => boolean;
94
+ escape: (s: string, { windowsPathsNoEscape, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape">) => string;
95
+ unescape: (s: string, { windowsPathsNoEscape, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape">) => string;
96
+ };
97
+ //# sourceMappingURL=index.d.ts.map