type DirectorySeparator = '/' | '\\'; type PathInput = string | undefined | null; declare const UnixDS = "/"; declare const WinDS = "\\"; type PathReplacementCallback = (path: string, separator: string) => string; type PathUtilsOptions = { separator: string; dangerReplace?: PathReplacementCallback; duplicateReplace?: PathReplacementCallback; }; /** * 创建路径处理工具 * * @param {PathUtilsOptions} options * @returns */ declare const createPathUtils: ({ separator: inputSeparator, dangerReplace, duplicateReplace, }: PathUtilsOptions) => { purgePath: (path: PathInput) => string; joinPath: (...paths: PathInput[]) => string; }; declare const purgeHttpPath: (path: PathInput) => string; declare const joinHttpPath: (...paths: PathInput[]) => string; export { UnixDS, WinDS, createPathUtils, joinHttpPath, purgeHttpPath }; export type { DirectorySeparator, PathInput, PathReplacementCallback, PathUtilsOptions };