import { ITanajuraService, IGitService, IConfigService, LocalDB } from '@formicarium/common'; import { IUIService } from '../services/ui'; export declare const shouldDeleteTanajuraRepo: (serviceName: string, ui: IUIService) => Promise; export declare const overrideRemoteRepo: (remoteName: string, ui: IUIService) => Promise; /** * Lists remotes on local git * If the remote name is already registered and urls are different, asks if wants to override * If wants to override, delete the old one and register again with new url * If the remote name does not exist, just add it * @param namespace string * @param localFolderPath string * @param service string * @param gitService GitService * @param configService ConfigService */ export declare const addRemote: (namespace: string, localFolderPath: string, service: string, gitService: IGitService, configService: IConfigService, ui: IUIService) => Promise; /** * Tries to create repo on tanajura * If already exists, asks if wants to override * If wants to override, deletes service and calls itself recursively * If does not want to override, returns * @param namespace string * @param serviceName string * @param tanajuraService TanajuraService */ export declare const createRepo: (namespace: string, serviceName: string, tanajuraApiUrl: string, tanajuraService: ITanajuraService, ui: IUIService) => Promise; /** * 1. Creates repo on tanajura * 2. Adds remote to local git * 3. Pushes local git to remote * @param namespace string * @param serviceName string * @param localFolderPath string * @param tanajuraService TanajuraService * @param gitService GitService * @param configService ConfigService * @param ui UIService */ export declare const gitSetup: (namespace: string, serviceName: string, localFolderPath: string, tanajuraApiUrl: string, tanajuraService: ITanajuraService, gitService: IGitService, configService: IConfigService, ui: IUIService) => Promise; /** * Checks if the remote is registered * if it is, just push to "tanajura" * PA! * @param namespace string * @param localFolderPath string * @param gitService GitService */ export declare const gitPush: (namespace: string, localFolderPath: string, gitService: IGitService) => Promise; export declare const deleteLocalRepoIfExists: (uiService: IUIService, gitService: IGitService, localDB: LocalDB, devspaceName: string, serviceName: string) => Promise; //# sourceMappingURL=git.d.ts.map