import type { Id, Emitter } from "@codesandbox/pitcher-common"; import type { git } from "@codesandbox/pitcher-protocol"; export interface IGitClient { onStatusUpdated: Emitter["event"]; onRemotesUpdated: Emitter["event"]; onCheckoutPrevented: Emitter["event"]; onRemotesError: Emitter["event"]; onPullStarted: Emitter["event"]; onPullFinished: Emitter["event"]; onCommitStarted: Emitter["event"]; onCommitFinished: Emitter<{ exitCode: 0 | 1; status: git.GitStatus; } | { exitCode: 0 | 1; }>["event"]; onBranchRenamed: Emitter<{ oldBranch: string; newBranch: string; }>["event"]; pushToRemote(url: string, branch: string, squashAllCommits?: boolean): Promise; resetLocalWithRemote(): Promise; getStatus(): Promise; getRemotes(): git.GitRemotes; getTargetDiffStatus(baseBranch: string): Promise; resync(): void; compare(branch: string): Promise; pull(branch?: string, force?: boolean): Promise; commit(message: string, paths?: string[], push?: boolean): Promise<{ shellId: Id; }>; push(): 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=IGitClient.d.ts.map