import type { AuthorType, CheckConclusion, CheckRun, CheckStatus, Review, ReviewThread } from "../types.mts"; import type { RawContextNode } from "./batch-raw-types.mts"; export declare function mapAuthorType(typeName: string | undefined | null, login?: string | undefined | null): AuthorType; export declare function parseCreatedAt(iso: string): number; /** Map a GraphQL CheckRun context node to a CheckRun. */ export declare function mapCheckRunNode(node: Extract): CheckRun; export declare function latestApprovedLogins(latest: Array<{ login: string; state: string; }>): Set; /** * A CR review is stale when its commit.oid differs from the PR head AND every * associated review thread is resolved or outdated. Reviews with no associated * threads are treated conservatively (not marked stale). */ export declare function isReviewStale(review: Review, headRefOid: string, reviewThreads: ReviewThread[]): boolean; export declare function mapStatusContextState(state: string): { status: CheckStatus; conclusion: CheckConclusion; };