import { z } from "zod"; export declare function repoPath(owner: string, repo: string): string; export declare const RawUser: z.ZodNullable>; declare const PrListItemSchema: z.ZodPipe>; base: z.ZodObject<{ ref: z.ZodString; }, z.core.$strip>; head: z.ZodObject<{ ref: z.ZodString; sha: z.ZodString; }, z.core.$strip>; draft: z.ZodOptional; body: z.ZodNullable; html_url: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ number: number; title: string; state: string; author: string; base: string; head: string; headSha: string; draft: boolean; body: string; url: string; }, { number: number; title: string; state: string; user: { login: string; } | null; base: { ref: string; }; head: { ref: string; sha: string; }; body: string | null; html_url: string; draft?: boolean | undefined; }>>; export type PrListItem = z.infer; declare const PrSummarySchema: z.ZodPipe>; base: z.ZodObject<{ ref: z.ZodString; }, z.core.$strip>; head: z.ZodObject<{ ref: z.ZodString; sha: z.ZodString; }, z.core.$strip>; draft: z.ZodOptional; body: z.ZodNullable; html_url: z.ZodString; additions: z.ZodNumber; deletions: z.ZodNumber; changed_files: z.ZodNumber; }, z.core.$strip>, z.ZodTransform<{ additions: number; deletions: number; changedFiles: number; number: number; title: string; state: string; author: string; base: string; head: string; headSha: string; draft: boolean; body: string; url: string; }, { number: number; title: string; state: string; user: { login: string; } | null; base: { ref: string; }; head: { ref: string; sha: string; }; body: string | null; html_url: string; additions: number; deletions: number; changed_files: number; draft?: boolean | undefined; }>>; export type PrSummary = z.infer; declare const PrFileSchema: z.ZodPipe; }, z.core.$strip>, z.ZodTransform<{ path: string; status: string; additions: number; deletions: number; patch: string; }, { filename: string; status: string; additions: number; deletions: number; patch?: string | undefined; }>>; export type PrFile = z.infer; declare const ReviewSummarySchema: z.ZodPipe>; state: z.ZodString; body: z.ZodNullable; submitted_at: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ id: number; author: string; state: string; body: string; submittedAt: string; }, { id: number; user: { login: string; } | null; state: string; body: string | null; submitted_at?: string | null | undefined; }>>; export type ReviewSummary = z.infer; declare const ReviewCommentInfoSchema: z.ZodPipe>; user: z.ZodNullable>; body: z.ZodString; html_url: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ id: number; path: string; line: number | null; author: string; body: string; url: string; }, { id: number; path: string; user: { login: string; } | null; body: string; html_url: string; line?: number | null | undefined; }>>; export type ReviewCommentInfo = z.infer; declare const CheckRunSchema: z.ZodPipe; html_url: z.ZodNullable; }, z.core.$strip>, z.ZodTransform<{ name: string; status: string; conclusion: string | null; url: string; }, { name: string; status: string; conclusion: string | null; html_url: string | null; }>>; export type CheckRun = z.infer; export declare const CommentInfoSchema: z.ZodPipe>; body: z.ZodString; created_at: z.ZodString; html_url: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ id: number; author: string; body: string; createdAt: string; url: string; }, { id: number; user: { login: string; } | null; body: string; created_at: string; html_url: string; }>>; export type CommentInfo = z.infer; export type ReviewComment = { path: string; line: number; body: string; side?: string; }; export declare function _ghPrGet(number: number, owner: string, repo: string): Promise; export declare function _ghPrList(state: string, base: string, perPage: number, page: number, owner: string, repo: string): Promise; export declare function _ghPrDiff(number: number, owner: string, repo: string): Promise; export declare function _ghPrFiles(number: number, perPage: number, page: number, owner: string, repo: string): Promise; export declare function _ghPrReviews(number: number, perPage: number, page: number, owner: string, repo: string): Promise; export declare function _ghPrReviewComments(number: number, perPage: number, page: number, owner: string, repo: string): Promise; export declare function _ghPrHeadSha(number: number, owner: string, repo: string): Promise; export declare function _ghPrChecks(number: number, perPage: number, page: number, owner: string, repo: string): Promise; export declare function _ghPrReviewComment(number: number, filePath: string, line: number, body: string, side: string, commitSha: string, owner: string, repo: string): Promise; /** Throws on a review GitHub would refuse, so the interrupt is never raised * for it: a REQUEST_CHANGES review with no body, or a comment whose line is * not a positive whole number. Pure. */ export declare function _ghCheckReview(event: string, body: string, comments: ReviewComment[]): void; export declare function _ghPrReview(number: number, event: string, body: string, comments: ReviewComment[], owner: string, repo: string): Promise; export declare function _ghPrApprove(number: number, body: string, owner: string, repo: string): Promise; export {};