/** * An error of this class will be thrown if any of the git operations fail. */ export declare class GitCmdError extends Error { readonly originalError: Error | string; /** * * @param message Error message describing the git failure * @param originalError The original error that caused the failure */ constructor(message: string, originalError: Error | string); } /** * Typeguard to check if an unknown error is an instance of {@link GitCmdError | `GitCmdError`}. * @param error */ export declare function isGitCmdError(error: unknown): error is GitCmdError; /** * Catch all error class to wrap unknown errors. An error of this class popping * up is considered a bug */ export declare class UnexpectedError extends Error { constructor(error: unknown); /** * Use this method to generate a url for an issue containing relevant * information for this error. * @returns clickable url to create an issue for this error */ newIssueUrl(): string; } /** * Typeguard to check if an unknown error is an instance of {@link UnexpectedError | `UnexpectedError`}. * @param error */ export declare function isUnexpectedError(error: unknown): error is UnexpectedError;