import type { RawContextNode, RawComment, RawPr, RawReview, RawReviewSummary, RawThread } from "./batch-raw-types.mts"; export interface RawPageResponse { repository: { pullRequest: { reviewThreads?: RawPr["reviewThreads"]; comments?: RawPr["comments"]; changesRequestedReviews?: RawPr["changesRequestedReviews"]; reviewSummaries?: RawPr["reviewSummaries"]; approvedReviews?: RawPr["approvedReviews"]; commits?: RawPr["commits"]; } | null; }; } export declare function backwardCursor(conn: { pageInfo: { hasPreviousPage: boolean; startCursor: string | null; }; } | undefined): string | undefined; export declare function forwardCursor(conn: { pageInfo: { hasNextPage: boolean; endCursor: string | null; }; } | undefined): string | undefined; export interface PageCursors { threads?: string; comments?: string; changesRequested?: string; reviewSummaries?: string; approvedReviews?: string; checks?: string; } export interface PageAccumulator { threads: RawThread[]; comments: RawComment[]; changesRequested: RawReview[]; reviewSummaries: RawReviewSummary[]; approvedReviews: RawReviewSummary[]; checks: RawContextNode[]; } export declare function applyIncludedPage(dest: PageAccumulator, pr2: NonNullable, cursors: PageCursors, firstOid: string | undefined, pageCount: number, pr: number): { cursors: PageCursors; pageCount: number; };