/** * Detect TypeScript errors reported during isolated transpilation. * This includes syntax errors and does not perform a full type check. * * @param source TypeScript source text to parse. * @param fileName File name to associate with parser diagnostics. * @returns Whether the source produces at least one error diagnostic. */ export declare function hasTypeScriptSyntaxErrors(source: string, fileName: string): boolean; /** * Check whether a relative path stays within its project boundary. * * @param relativePath Relative path to validate. * @returns Whether the path is non-empty, rootless, and does not escape upward. */ export declare function isProjectLocalRelativePath(relativePath: string): boolean; /** * Check whether a file path resolves inside a project directory. * * @param projectDir Absolute project directory used as the resolution base. * @param filePath Project-relative file path to validate. * @returns Whether the resolved file path remains inside the project directory. */ export declare function isSafeProjectRelativePath(projectDir: string, filePath: string): boolean;