import type { DiffSideV1, FindingCategoryV1 } from "./finding.js"; export interface PullRequestFileV1 { readonly path: string; readonly previousPath?: string; readonly status: "added" | "modified" | "deleted" | "renamed" | "copied"; readonly contentKind: "text" | "binary"; readonly additions: number; readonly deletions: number; readonly patch?: string; readonly patchOmittedReason?: "binary"; } export interface PreviousFindingMarkerV1 { readonly findingId: string; readonly headSha: string; readonly path: string; readonly side: DiffSideV1; readonly line: number; readonly endLine: number; readonly category: FindingCategoryV1; } export interface PreviousFindingV1 { readonly commentId: string; readonly authorId: string; readonly authorLogin: string; readonly body: string; readonly path?: string; readonly line?: number; readonly side?: DiffSideV1; readonly marker?: PreviousFindingMarkerV1; readonly replies: readonly { readonly commentId: string; readonly authorId: string; readonly authorLogin: string; readonly body: string; }[]; } export interface PullRequestPacketV1 { readonly schemaVersion: "pioneer-pr-review-packet/v1"; readonly repository: { readonly owner: string; readonly name: string; readonly repositoryId?: string; }; readonly pullRequest: { readonly number: number; readonly url: string; readonly title: string; readonly body: string; readonly baseRef: string; readonly baseSha: string; readonly headSha: string; }; readonly commits: readonly { readonly sha: string; readonly title: string; readonly body: string; }[]; readonly files: readonly PullRequestFileV1[]; readonly rules: readonly { readonly path: string; readonly content: string; readonly source: "base" | "head" | "workflow"; }[]; readonly previousFindings: readonly PreviousFindingV1[]; readonly packetDigest: string; } export declare const DEFAULT_MAXIMUM_PACKET_BYTES: number; export declare const HARD_MAXIMUM_PACKET_BYTES: number; export declare function parsePullRequestPacket(value: unknown): PullRequestPacketV1; export declare function computePacketDigest(packet: Omit): string; export declare function validatePacketCompleteness(packet: PullRequestPacketV1, maxBytes?: number): void; //# sourceMappingURL=packet.d.ts.map