/**
 * Worktree Service Interface
 *
 * Output port for git worktree operations.
 * Implementations manage git worktree creation, removal, and listing.
 */
/**
 * Error codes for worktree operations.
 */
export var WorktreeErrorCode;
(function (WorktreeErrorCode) {
    WorktreeErrorCode["ALREADY_EXISTS"] = "ALREADY_EXISTS";
    WorktreeErrorCode["BRANCH_IN_USE"] = "BRANCH_IN_USE";
    WorktreeErrorCode["NOT_FOUND"] = "NOT_FOUND";
    WorktreeErrorCode["DIRTY_WORKTREE"] = "DIRTY_WORKTREE";
    WorktreeErrorCode["GIT_ERROR"] = "GIT_ERROR";
})(WorktreeErrorCode || (WorktreeErrorCode = {}));
/**
 * Typed error for worktree operations.
 */
export class WorktreeError extends Error {
    code;
    cause;
    constructor(message, code, cause) {
        super(message);
        this.code = code;
        this.cause = cause;
        this.name = 'WorktreeError';
    }
}
