export declare const isGitUrl: (val: string) => boolean; /** * Get repository root folder, starting from `cwd`. * * @param cwd current working directory * @returns repository root folder */ export declare const getRepository: (cwd: string) => Promise; /** * Try to find repository, starting from `cwd`. If none is found, ask user * if one should be initialized. * * @param cwd current working directory * @returns repository root folder */ export declare const ensureRepository: (cwd: string) => Promise; /** * Initialize a repository at `cwd`. * * @param cwd current working directory * @returns cwd */ export declare const init: (cwd: string) => Promise; /** * Fetch repository updates. * * @param cwd current working directory * @returns resolves when fetch was successful */ export declare const fetch: (cwd: string) => Promise; /** * Do a fast forward merge. * * @param cwd current working directory * @returns resolves when merge was successful */ export declare const fastForward: (cwd: string) => Promise; /** * Get remote URL from repository in `cwd`. * * @param cwd current working directory * @returns remote url */ export declare const getRemoteUrl: (cwd: string) => Promise; /** * Try to get remote URL from repository. If no repository can be found, * ask the user if one should initialized and set a remote URL. * * @param cwd current working directory * @returns remote url */ export declare const ensureRemoteUrl: (cwd: string) => Promise; /** * Check if repository is clean (contains no uncommited updates and un-stage files). * * @param cwd current working directory * @returns if the repository is clean */ export declare const isRepositoryClean: (cwd: string) => Promise; /** * Check if repository is clean (contains no uncommited updates and un-stage files). * Will prompt the user to create a repository if none is initialized yet. * * @param cwd current working directory * @returns if the repository is clean */ export declare const ensureGitClean: (cwd: string) => Promise; /** * Finds the corresponding remote reference for a local reference. * For example, find the tracking branch on remote. * * @param upstream name of the upstream (usually "origin") * @param cwd current working directory * @returns name of the remote ref or `null` if it can not be found */ export declare const getRefByUpstream: (upstream: string, cwd?: string) => Promise; export declare const parseRemoteUrl: (remoteUrl: string) => { origin: string; project_with_namespace: string; namespace: string; project: string; };