import { IDashboardAPIClient } from "@empiricalrun/shared-types/api/base"; export declare const GIT_USER_NAME = "empiricalrun[bot]"; export declare const GIT_USER_EMAIL = "180257021+empiricalrun[bot]@users.noreply.github.com"; export declare function getGitDiff(filepath: string, cwd: string): string; export declare function getGitDiffStaged(filepath: string, cwd: string): string; export declare function getGitDiffForStagedOrUnstaged(filepath: string, cwd: string): string; export declare function getGitDiffForNewFile(filepath: string, cwd: string): string; export declare function checkoutBranch(branchName: string, cwd: string): Promise; export declare function commitAsBotUser(commitMessage: string, cwd: string): string | null; export declare function getCurrentBranchName(repoPath: string): Promise; export declare function pullBranch(branchName: string, cwd: string): Promise; export declare function stageAndCommitFilesAsBotUser({ commitMessage, files, repoPath, }: { commitMessage: string; files: string[]; repoPath: string; }): string | null; export type FileChange = { type: "added" | "modified" | "removed" | "renamed"; path: string; oldPath?: string; }; export declare function getStagedFiles(cwd: string): FileChange[]; export declare function getFilesChanged(cwd: string): string[]; export declare function mergePullRequest({ owner, repoName, prNumber, apiClient, }: { owner: string; repoName: string; prNumber: number; apiClient: IDashboardAPIClient; }): Promise; export declare function gitPushChanges({ branch, workingDirectory, }: { branch: string; workingDirectory: string; }): void; //# sourceMappingURL=git.d.ts.map