import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; export interface ModificationInfo { isModified: boolean; } export declare class ComponentCodeService { private http; constructor(http: HttpClient); private baseUrl; private openCodeByIDEAUrl; private isFileModifiedUrl; /** * 获取构件代码 * @param filePath 构件代码文件路径,相对工作空间 */ get(filePath: string): Observable; isFileModified(filePath: string): Observable; /** * 保存构件代码 * @param filePath 构件代码文件路径,相对工作空间 * @param componentCode 待保存代码 */ save(filePath: string, componentCode: string): Observable; /** * 通过idea打开构件代码 * @param filePath 构件代码文件路径 */ openCodeByIDEA(filePath: string): Observable; /** * 获取构件代码文件的相对工作空间路径 */ getCodeFilePath(metadataRetalivePath: string): Observable; }