import * as T from "fp-ts/Task"; import * as TE from "fp-ts/TaskEither"; import { Issue } from "../entity/issue.entity"; import { DomainError, DomainSuccess } from "../general/general.types"; declare type MainCommand = string; export interface Command { command: MainCommand; windowsCommand?: MainCommand; argument?: string; requiredArgument?: boolean; } export interface GitCommand extends Command { } export declare type GitCommandWithArguments = (cmd: GitCommand) => (...params: string[]) => GitCommand; export declare type CommandOutput = string; export declare type GitCommandOutput = CommandOutput; export declare type ExecuteGitCommand = (gitCommand: GitCommand) => T.Task; export declare type ExecuteCommand = (command: Command) => T.Task; export interface CheckoutToIssue { (issue: Issue): TE.TaskEither; } export interface CheckoutSuccess extends DomainSuccess { branchName: string; } export interface CheckoutFailure extends DomainError { branchName: string; } export declare type CheckoutToIssueBuilder = (exec: ExecuteGitCommand) => CheckoutToIssue; export {};