import * as path from "node:path";
/**
 * Resolve a path to an absolute path
 * @param inputPath Path to resolve
 * @returns Absolute path
 */
export function toAbsolutePath(inputPath) {
    if (path.isAbsolute(inputPath)) {
        return inputPath;
    }
    return path.resolve(process.cwd(), inputPath);
}
/**
 * Get the relative path from base to target
 * @param basePath Base path
 * @param targetPath Target path
 * @returns Relative path from base to target
 */
export function getRelativePath(basePath, targetPath) {
    return path.relative(basePath, targetPath);
}
/**
 * Join path segments
 * @param segments Path segments to join
 * @returns Joined path
 */
export function joinPaths(...segments) {
    return path.join(...segments);
}
/**
 * Get the directory name of a path
 * @param filePath Path to get directory name from
 * @returns Directory name
 */
export function getDirname(filePath) {
    return path.dirname(filePath);
}
/**
 * Get the base name of a path
 * @param filePath Path to get base name from
 * @returns Base name
 */
export function getBasename(filePath) {
    return path.basename(filePath);
}
//# sourceMappingURL=path-utils.js.map