/** * Shared comment loading and grouping logic for MRSF rendering plugins. */ import type { MrsfDocument } from "@mrsf/cli"; import type { MrsfPluginOptions, SlimComment, LineMap, CommentLoader } from "./types.js"; export type { CommentLoader }; /** * Convert an MrsfDocument into a slim comment array. */ export declare function toSlimComments(doc: MrsfDocument): SlimComment[]; /** * Group comments by line number, threading replies under parents. */ export declare function groupByLine(comments: SlimComment[]): LineMap; /** * Resolve options into a filtered LineMap ready for rendering. * Returns null if there are no comments to render. */ export declare function resolveComments(loader: CommentLoader, options: MrsfPluginOptions, env?: unknown): { lineMap: LineMap; comments: SlimComment[]; } | null; //# sourceMappingURL=comments.d.ts.map