/** * @fileoverview Path utilities for cross-platform support * * This module provides utility functions for handling paths across different * operating systems. It includes functions for: * - Platform detection (Windows vs POSIX) * - Path normalization (backslash to forward slash conversion) * - Path splitting with UNC path support * - Glob magic character detection * * These utilities ensure minimatch-fast works correctly on all platforms * while maintaining compatibility with the original minimatch behavior. * * @author 686f6c61 * @see https://github.com/686f6c61/minimatch-fast * @license MIT */ import type { Platform, Sep } from './types.js'; /** * Get the default path separator based on platform */ export declare const sep: Sep; /** * Check if the given platform is Windows */ export declare function isWindows(platform?: Platform): boolean; /** * Get the current platform */ export declare function getPlatform(): Platform; /** * Normalize a path by converting backslashes to forward slashes * This is critical for Windows compatibility * * @param path - The path to normalize * @param windowsPathsNoEscape - If true, treat backslash as path separator */ export declare function normalizePath(path: string, windowsPathsNoEscape: boolean): string; /** * Normalize a pattern by converting backslashes to forward slashes * * @param pattern - The pattern to normalize * @param windowsPathsNoEscape - If true, treat backslash as path separator */ export declare function normalizePattern(pattern: string, windowsPathsNoEscape: boolean): string; /** * Split a path by slashes * * @param path - The path to split * @param preserveMultipleSlashes - If true, don't collapse multiple slashes * @param isWindowsPlatform - If true, handle UNC paths */ export declare function slashSplit(path: string, preserveMultipleSlashes: boolean, isWindowsPlatform: boolean): string[]; //# sourceMappingURL=utils.d.ts.map