type ResolvedRef = { ref: string; repoHash: string; } & ({ type: "commit"; id: string; message: string; } | { type: "branch"; id: string; name: string; git?: { branch?: string | null; }; createSuggestedBranchLink?: string; headCommitId?: string | null; }); export type { ResolvedRef };