export interface ForgeUrl {
    domain: string;
    repo: string;
    kind: "pull" | "issue";
    number: number;
    url: string;
}
/** A pull request or issue page on any of the three forges: GitHub
 * `/o/r/pull/N` and `/o/r/issues/N`, gitboy `/o/r/pulls/N` and `/o/r/issues/N`,
 * GitLab `/group/r/-/merge_requests/N` and `/-/issues/N`. */
export declare function parseForgeUrl(value: string): ForgeUrl | undefined;
export type CheckState = "passing" | "failing" | "pending" | null;
/** One pull request or issue as the forge reports it now. */
export interface ForgeItem {
    state: "open" | "merged" | "closed";
    title?: string;
    draft?: boolean;
    /** Pull requests: the head commit's checks, one word. */
    checks?: CheckState;
    /** Pull requests: clean, blocked, conflicts, behind, draft or unknown. */
    mergeable?: "clean" | "blocked" | "conflicts" | "behind" | "draft" | "unknown";
    mergeDetail?: string;
    head?: string;
    mergedAt?: string;
    closedAt?: string;
}
/** GitHub's mergeStateStatus and gitboy's derived mergeState as one word. */
export declare function mergeableWord(mergeState: unknown, draft?: boolean): ForgeItem["mergeable"];
