index.d.mts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import path$1 from 'node:path';
  2. declare const sep = "/";
  3. declare const delimiter = ":";
  4. declare const normalize: typeof path$1.normalize;
  5. declare const join: typeof path$1.join;
  6. declare const resolve: typeof path$1.resolve;
  7. declare function normalizeString(path: string, allowAboveRoot: boolean): string;
  8. declare const isAbsolute: typeof path$1.isAbsolute;
  9. declare const toNamespacedPath: typeof path$1.toNamespacedPath;
  10. declare const extname: typeof path$1.extname;
  11. declare const relative: typeof path$1.relative;
  12. declare const dirname: typeof path$1.dirname;
  13. declare const format: typeof path$1.format;
  14. declare const basename: typeof path$1.basename;
  15. declare const parse: typeof path$1.parse;
  16. declare const path_basename: typeof basename;
  17. declare const path_delimiter: typeof delimiter;
  18. declare const path_dirname: typeof dirname;
  19. declare const path_extname: typeof extname;
  20. declare const path_format: typeof format;
  21. declare const path_isAbsolute: typeof isAbsolute;
  22. declare const path_join: typeof join;
  23. declare const path_normalize: typeof normalize;
  24. declare const path_normalizeString: typeof normalizeString;
  25. declare const path_parse: typeof parse;
  26. declare const path_relative: typeof relative;
  27. declare const path_resolve: typeof resolve;
  28. declare const path_sep: typeof sep;
  29. declare const path_toNamespacedPath: typeof toNamespacedPath;
  30. declare namespace path {
  31. export { path_basename as basename, path_delimiter as delimiter, path_dirname as dirname, path_extname as extname, path_format as format, path_isAbsolute as isAbsolute, path_join as join, path_normalize as normalize, path_normalizeString as normalizeString, path_parse as parse, path_relative as relative, path_resolve as resolve, path_sep as sep, path_toNamespacedPath as toNamespacedPath };
  32. }
  33. export { basename, path as default, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, resolve, sep, toNamespacedPath };