import { ThemeIcon } from "../../base/common/themables.js"; export type ChatPullRequestState = "open" | "closed" | "merged" | "draft"; /** * Additional live status used to refine the icon of an open pull request. */ export interface IPullRequestIconStatus { /** Whether the pull request has merge conflicts. */ readonly hasMergeConflicts?: boolean; /** Whether the pull request has at least one failing CI check. */ readonly hasFailingChecks?: boolean; /** Whether the pull request has at least one unresolved review comment thread. */ readonly hasUnresolvedComments?: boolean; } /** * Combines GitHub's pull request state and draft flag into a display state. * GitHub keeps `draft: true` on closed draft pull requests, so only open pull * requests are presented as drafts. */ export declare function getPullRequestDisplayState(state: "open" | "closed" | "merged", isDraft: boolean): ChatPullRequestState; /** * Computes the shared pull request glyph and state color used by chat/session pills. */ export declare function computePullRequestIcon(state: ChatPullRequestState, status?: IPullRequestIconStatus): ThemeIcon; /** Returns the most important status icon across a set of pull requests. */ export declare function getHighestPriorityPullRequestIcon(icons: readonly (ThemeIcon | undefined)[]): ThemeIcon | undefined;