/*
 * Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3 as published by
 * the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

import { Observable } from 'rxjs';
import { FileDiff, Remote, Repository, RepositoryStatus } from '../models/Repository';
export declare function fetchRepositories(siteId: string): Observable<Repository[]>;
export declare function addRemote(remote: Remote): Observable<true>;
export declare function deleteRemote(siteId: string, remoteName: string): Observable<true>;
export interface PullResponse {
  commitsMerged: number;
  mergeCommitId: string;
}
export declare function pull(remote: Partial<Remote>): Observable<PullResponse>;
export declare function push(
  siteId: string,
  remoteName: string,
  remoteBranch: string,
  force: boolean
): Observable<true>;
export declare function fetchStatus(siteId: string): Observable<RepositoryStatus>;
export declare function resolveConflict(siteId: string, path: string, resolution: string): Observable<RepositoryStatus>;
export declare function bulkResolveConflict(
  siteId: string,
  paths: string[],
  resolution: string
): Observable<RepositoryStatus>;
export declare function diffConflictedFile(siteId: string, path: string): Observable<FileDiff>;
export declare function commitResolution(siteId: string, commitMessage: string): Observable<RepositoryStatus>;
export declare function cancelFailedPull(siteId: string): Observable<RepositoryStatus>;
