/** * 跨平台路径工具集 * 提供Windows、Linux、macOS三平台的路径兼容性处理 */ export interface PathInfo { original: string; normalized: string; absolute: string; exists: boolean; isFile: boolean; isDirectory: boolean; size?: number; platform: string; isValid: boolean; } /** * 检测操作系统类型 */ export declare function getPlatformInfo(): { platform: NodeJS.Platform; arch: NodeJS.Architecture; version: string; cwd: string; homedir: string; tmpdir: string; }; /** * 检查路径是否为Windows路径 */ export declare function isWindowsPath(filePath: string): boolean; /** * 检查路径是否为Linux/macOS路径 */ export declare function isUnixPath(filePath: string): boolean; /** * 将Windows路径转换为Unix风格路径 */ export declare function windowsToUnixPath(filePath: string): string; /** * 将Unix路径转换为Windows路径 */ export declare function unixToWindowsPath(filePath: string): string; /** * 跨平台路径标准化 */ export declare function normalizeCrossPlatformPath(filePath: string): string; /** * 获取路径详细信息 */ export declare function getPathInfo(filePath: string): Promise; /** * 验证路径是否可读 */ export declare function validatePathAccess(filePath: string): Promise; /** * 检查是否为Excel文件路径 */ export declare function isExcelFilePath(filePath: string): boolean; /** * 安全地解析和验证文件路径 */ export declare function safeResolvePath(filePath: string): Promise<{ success: boolean; resolvedPath?: string; error?: string; info?: PathInfo; }>; /** * 获取跨平台路径兼容性建议 */ export declare function getPathCompatibilityAdvice(filePath: string): string[]; //# sourceMappingURL=path-utils.d.ts.map