import type { ReviewComment } from "./board.js"; import type { DiffFile, DiffLine, TaskDiff } from "./task-diff.js"; /** Where a comment on this line is kept: its number (new side, else old) and its text with its kind. */ export declare const commentAnchor: (l: DiffLine) => { line: number; lineText: string; }; /** The comment is about this line: same file, same number, and (when it kept it) the same text. */ export declare function commentOn(c: ReviewComment, file: string, l: DiffLine): boolean; /** The comments of a file not under any of its lines now (the line moved or changed): outdated, kept. */ export declare function outdatedIn(f: DiffFile, comments: ReviewComment[]): ReviewComment[]; /** The review as plain lines: each file, its hunks, the comments under their lines; comments on files not in the diff last. */ /** A text for a terminal: tabs as four spaces, control characters (C0, DEL, C1, newlines too) as spaces. */ export declare const termText: (s: string) => string; export declare function reviewLines(d: TaskDiff, comments: ReviewComment[]): string[];