import { type ReviewHistoryComment, fetchReviewHistory } from "../../github-review/dist/index.js"; import { type SpawnOptions, type SpawnResult } from "../../agent-spawn/dist/index.js"; export declare const DEFAULT_CODE_REVIEW_INGEST_DIRECTORY = ".poe-code/code-review/ingest"; export declare const DEFAULT_CODE_REVIEW_PROFILES_DIRECTORY = ".poe-code/code-review/profiles"; export interface CodeReviewIngestInput { username: string; repos: readonly string[]; profile?: string; agent?: string; cwd: string; } export declare function parseCodeReviewIngestArgs(args: string[]): CodeReviewIngestInput; export interface NormalizedIngestComment { repo: string; pullRequestNumber: number; pullRequestTitle: string; createdAt: string; kind: ReviewHistoryComment["kind"]; body: string; path?: string; line?: number; diffHunk?: string; } export interface CodeReviewIngestResult { profile: string; profilePath: string; artifactsDirectory: string; sourcePath: string; commentsPath: string; promptPath: string; commentCount: number; partial: boolean; spawnResult: SpawnResult; } export interface CodeReviewIngestDependencies { fetchHistory?: typeof fetchReviewHistory; resolveAgent?: () => string | undefined | Promise; loadPrompt?: (input: { cwd: string; role: "profile-synthesis"; }) => Promise; spawnAgent?: (agent: string, prompt: string, options: Omit) => Promise; now?: () => Date; } export declare function ingestCodeReviewProfile(input: CodeReviewIngestInput, dependencies?: CodeReviewIngestDependencies): Promise;