/** * Path mapping utilities for converting between absolute and relative paths */ /** * PathMapper handles path conversions for cross-platform compatibility */ export declare class PathMapper { private basePath; constructor(basePath?: string); /** * Convert an absolute path to relative */ toRelative(absolutePath: string): string; /** * Convert a relative path to absolute */ toAbsolute(relativePath: string): string; /** * Normalize path separators (always use forward slashes) */ normalizePath(filePath: string): string; /** * Check if a path is within the base path */ isWithinBase(filePath: string): boolean; /** * Get the base path */ getBasePath(): string; /** * Set a new base path */ setBasePath(basePath: string): void; /** * Extract file name from path */ getFileName(filePath: string): string; /** * Extract directory from path */ getDirectory(filePath: string): string; /** * Extract file extension */ getExtension(filePath: string): string; /** * Join paths safely */ join(...paths: string[]): string; /** * Map an array of paths to relative paths */ mapToRelative(paths: string[]): string[]; /** * Map an array of paths to absolute paths */ mapToAbsolute(paths: string[]): string[]; /** * Create a path mapper for a specific subdirectory */ createSubMapper(subdir: string): PathMapper; } /** * Create a default path mapper for current working directory */ export declare function createPathMapper(basePath?: string): PathMapper; //# sourceMappingURL=PathMapper.d.ts.map