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