import type { Id } from "@codesandbox/pitcher-common"; import type { git } from "@codesandbox/pitcher-protocol"; import type { IGitClient } from "../../interface/clients/IGitClient"; import type { PitcherMessageHandler } from "../PitcherMessageHandler"; export declare class GitClient implements IGitClient { private messageHandler; private cachedGitStatus; private statusUpdatedEmitter; onStatusUpdated: import("@codesandbox/pitcher-common").Event; private checkoutPreventedEmitter; onCheckoutPrevented: import("@codesandbox/pitcher-common").Event; private remotes; private remotesUpdatedEmitter; onRemotesUpdated: import("@codesandbox/pitcher-common").Event; private remotesErrorEmitter; onRemotesError: import("@codesandbox/pitcher-common").Event; private pullStartedEmitter; onPullStarted: import("@codesandbox/pitcher-common").Event; private pullFinishedEmitter; onPullFinished: import("@codesandbox/pitcher-common").Event; private commitStartedEmitter; onCommitStarted: import("@codesandbox/pitcher-common").Event<{ shellId: Id; message: string; paths?: string[] | undefined; }>; private commitFinishedEmitter; onCommitFinished: import("@codesandbox/pitcher-common").Event<{ exitCode: 0 | 1; status: git.GitStatus; } | { exitCode: 0 | 1; }>; private branchRenamedEmitter; onBranchRenamed: import("@codesandbox/pitcher-common").Event<{ oldBranch: string; newBranch: string; }>; constructor(messageHandler: PitcherMessageHandler); private createRemotesValue; pushToRemote(url: string, branch: string, squashAllCommits?: boolean): Promise; resetLocalWithRemote(): Promise; getStatus(): Promise; getRemotes(): git.GitRemotes; getTargetDiffStatus(baseBranch: string): Promise; resync(): Promise; compare(branch: string): Promise; pull(branch?: string, force?: boolean): Promise; commit(message: string, paths?: string[], push?: boolean): Promise<{ shellId: Id; }>; push(): Promise | Promise; discard(paths?: string[]): Promise; renameBranch(oldBranch: string, newBranch: string): Promise; remoteContent({ reference, filepath, }: { reference: string; filepath: string; }): Promise<{ content: string; }>; checkoutInitialBranch(): Promise; transposeLines(lines: Array<{ sha: string; path: string; line: number; }>): Promise>; } //# sourceMappingURL=GitClient.d.ts.map