import type { ApiContext } from "./context.js"; import type { InsightReport } from "../generated/types.js"; export interface GetCodeInsightsParams { project?: string; repository: string; prId: number; includeFileAnnotations?: boolean; fileStart?: number; fileLimit?: number; } export interface FileAnnotations { byPath: Record; isLastPage: boolean; nextPageStart?: number; } export interface CodeInsights { reports: InsightReport[]; annotations: Record; files?: FileAnnotations; } export declare function insightsApi(ctx: ApiContext): { get({ project, repository, prId, includeFileAnnotations, fileStart, fileLimit, }: GetCodeInsightsParams): Promise; }; export type InsightsApi = ReturnType;