import { type ReviewFile, type SanitizedReview } from '../gha-review-payload/index.mts'; export { MAX_REVIEW_COMMENTS as MAX_COMMENTS, MAX_REVIEW_PAYLOAD_BYTES as MAX_PAYLOAD_BYTES, ReviewPayloadError as PostReviewError, type ReviewComment, type SanitizedReview, } from '../gha-review-payload/index.mts'; export type PullFile = ReviewFile; export type PostResult = { ok: boolean; status: number; body: string; }; export type PostReviewIo = { readFile(path: string): Buffer; removeFile(path: string): void; getHeadSha(): string; listPullFiles(): PullFile[]; postReview(payload: SanitizedReview): PostResult; }; export type PostReviewResult = { posted: boolean; commentCount: number; }; /** * Posts a validated review, optionally prefixing the body with a provider attribution line. * The attribution is cosmetic (final posted text only); it never affects staged payload bytes. */ export declare function runPostReview(payloadPath: string, io: PostReviewIo, providerName?: string): PostReviewResult;