import { ICodeAPIProvider } from '@codeblitzjs/ide-code-api'; import { HeadRef, ICodeAPIProxy, ICodePlatform, IRepositoryModel, Refs, Submodule } from './types'; export declare class Repository implements IRepositoryModel { codeAPI: ICodeAPIProvider; private _onDidChangeCommit; readonly onDidChangeCommit: import("@opensumi/ide-core-common").Event; private _onDidAddSubmodules; readonly onDidAddSubmodules: import("@opensumi/ide-core-common").Event; /** * 仓库根路径 */ private _root; get root(): string; /** * submodules */ private _submodules; get submodules(): Submodule[]; /** * 平台 */ private _platform; get platform(): "github" | "gitlab" | "gitlink" | "atomgit" | "codeup" | "gitee"; get platformConfig(): import("@codeblitzjs/ide-code-api").ICodePlatformConfig; /** * 仓库群组或用户 */ private _owner; get owner(): string; /** * 仓库名 */ private _name; get name(): string; /** * project */ private _projectId?; get projectId(): string | undefined; /** * commit */ private _commit; get commit(): string; set commit(value: string); get request(): ICodeAPIProxy; constructor(data: { root: string; platform: ICodePlatform; owner: string; name: string; commit: string; projectId?: string; }); addSubmodulePath(path: string): Promise; initSubmodules(): Promise; private parseSubmodules; asRelativePath(absolutePath: string): string; } export declare class RootRepository extends Repository { private _onDidChangeRefs; readonly onDidChangeRefs: import("@opensumi/ide-core-common").Event; private _onDidChangeRef; readonly onDidChangeRef: import("@opensumi/ide-core-common").Event; private _initialized; private _refs; get refs(): Refs; private _HEAD; get HEAD(): HeadRef | undefined; private _ref; get ref(): string; set ref(value: string); private _refsInitialized; get refsInitialized(): Promise; /** * url 上显示的文件 */ private _revealEntry; get revealEntry(): { type: string; filepath: string; } | null; private initCommit; /** * @param commit 具体的 commit * @param ref tag, branch * @param refPath [tree|blob]/branch/path */ initHEAD({ commit, ref, refPath, isForce }: { commit?: string; ref?: string; refPath?: string; isForce?: boolean; }): Promise; refreshRepository(commit: string, ref: string): Promise; getRefs(): Promise; /** * statusbar 显示文案 */ get headLabel(): string; } //# sourceMappingURL=repository.d.ts.map