import { isAbsolute } from "../platform/compat/path/resolution.js"; /** Normalizes path. */ export declare function normalizePath(pathname: string): string; export declare function joinPath(a: string, b: string): string; export declare function isWithinDirectory(root: string, target: string): boolean; /** * Get file extension including the dot (e.g., ".ts", ".tsx"). * Returns empty string if no extension found. */ export declare function getExtension(path: string): string; /** * Get file extension without the dot, lowercased (e.g., "ts", "tsx"). * Returns empty string if no extension found. */ export declare function getExtensionName(path: string): string; export declare function getDirectory(path: string): string; export declare function hasHashedFilename(path: string): boolean; /** * Get esbuild loader type from file extension */ export declare function getEsbuildLoader(filePath: string): "tsx" | "jsx" | "ts" | "js"; export { isAbsolute as isAbsolutePath }; export declare function toBase64Url(input: string): string; export declare function fromBase64Url(encoded: string): string; /** * Check if a normalized path is a framework path that should not be fetched from API. * * Framework paths can appear in two forms: * 1. "_veryfront/..." - original framework module path prefix * 2. "src/react/...", "src/platform/...", etc. - framework source paths * (after FSAdapter normalizes absolute paths like /Users/.../veryfront-server/src/...) */ export declare function isFrameworkSourcePath(normalizedPath: string): boolean; //# sourceMappingURL=path-utils.d.ts.map