/** * Helper class for git remote.origin.fetch config * * @alpha */ export declare class GitRemoteFetchConfigService { private _gitService; private _terminalService; private _gracefulShutdownService; addRemoteBranchIfNotExists(remote: string, branch: string): void; pruneRemoteBranchesInGitConfigAsync: (remote: string) => Promise; /** * Sparo uses single branch mode as default. This function switch to all branch mode from single branch mode. * And, it returns a callback function to go back to single branch mode with previous git configuration. * It's used in "sparo fetch --all" command */ revertSingleBranchIfNecessary: (remote: string) => (() => void) | undefined; /** * Reads remote.origin.fetch from git configuration. It returns a mapping * * Map { * 'master' => Set { '+refs/heads/master:refs/remotes/origin/master' } * } */ getBranchesInfoFromRemoteFetchConfig(remoteFetchConfig: string[]): Map>; /** * This function is used for completion */ getBranchNamesFromRemote(remote: string): string[]; private _getRemoteFetchInGitConfig; /** * There is no easy way to unset one branch from git configuration * So, delete all remote.origin.fetch configuration and restores expected value */ private _setRemoteFetchInGitConfig; private _setAllBranchFetch; } //# sourceMappingURL=GitRemoteFetchConfigService.d.ts.map