/**
 * Normalizes a file path by removing leading slashes.
 * This is necessary because path.join() treats leading slashes as absolute paths.
 *
 * @param filePath - The file path to normalize
 * @returns The normalized path without leading slash
 *
 * @example
 * normalizeRelativePath("/config/routes.json") // => "config/routes.json"
 * normalizeRelativePath("config/routes.json")  // => "config/routes.json"
 */
export declare function normalizeRelativePath(filePath: string): string;
/**
 * Validates that a resolved path is within the allowed base directory.
 * This prevents path traversal attacks.
 *
 * @param resolvedPath - The absolute resolved path
 * @param baseDir - The base directory that the path must be within
 * @returns true if the path is safe, false otherwise
 *
 * @example
 * isPathSafe("/home/user/project/config", "/home/user/project") // => true
 * isPathSafe("/etc/passwd", "/home/user/project") // => false
 */
export declare function isPathSafe(resolvedPath: string, baseDir: string): boolean;
/**
 * Normalizes a path for consistent display (always start with /)
 *
 * @param filePath - The file path to normalize
 * @returns The normalized path with leading slash
 */
export declare function normalizeDisplayPath(filePath: string): string;
//# sourceMappingURL=path.d.ts.map