export declare const GITLAB_REF_FLAG = "CI_COMMIT_REF_NAME";
/** Check if the given `dir` is contained by a Git repository. */
export declare const isRepository: (dir?: string) => boolean;
/** Get the current branch name. */
export declare const getBranchName: (dir?: string) => string | null;
/** Get the default branch name. */
export declare const getDefaultBranchName: (dir?: string) => string | null;
/** Get the repository's remote URL. */
export declare const getRemoteURL: (dir?: string) => string | null;
interface CommitInfo {
    message: string;
    hash: string;
    author: string;
    email: string;
}
/** Get info on the most recent commit. */
export declare const getCommitInfo: (dir?: string) => CommitInfo | null;
/** Check if the repository contains unstaged changes. */
export declare const isDirty: (dir?: string) => boolean;
/** Get the tag name. */
export declare const getTag: (dir?: string) => string | null;
export {};
