export interface ReviewComment { type: "comment"; file: string; startLine?: number; endLine?: number; code?: string; question: string; } export interface PrContext { type: "pr_context"; repo: string; number: number; title: string; author: string; url: string; baseRefName: string; headRefName: string; headRefOid: string; body: string; } export interface PrCommentEntry { id: number; author: string; body: string; createdAt: string; htmlUrl: string; } export interface PrCommentThread { id: string; kind: "review" | "conversation"; path?: string; line?: number; startLine?: number; side?: "LEFT" | "RIGHT"; isResolved: boolean; isOutdated: boolean; htmlUrl: string; comments: PrCommentEntry[]; } export interface CommentThreadMessage { type: "comment_thread"; repo: string; number: number; thread: PrCommentThread; question?: string; } export interface CommentBatchMessage { type: "comment_batch"; repo: string; number: number; threads: PrCommentThread[]; note?: string; } export type ReviewPayload = ReviewComment | PrContext | CommentThreadMessage | CommentBatchMessage; export declare function formatReviewPayload(msg: ReviewPayload): string; //# sourceMappingURL=format.d.ts.map