import type { Location } from "../anchor/locate"; import type { Comment, Thread } from "../model/types"; export type CopyAs = "ai" | "text"; export interface ExportItem { thread: Thread; location: Location; } export interface ExportMeta { title: string; url: string; exportedAt: Date; /** Also the resolved threads (default: open ones only). */ all?: boolean; } export declare function formatAgo(at: number, now: number): string; /** Copy one thread — always the whole thread. */ export declare function copyThread(item: ExportItem, as: CopyAs, page: string, now: number): string; /** Copy every open thread, in the order given (page or slide order). */ export declare function copyAll(items: ExportItem[], as: CopyAs, meta: ExportMeta): string; /** A comment's reactions as one line: "👍 2 (Sam, Red Fox) · ❤️ 1 (Lee)"; empty when nobody reacted. */ export declare function reactionsLine(c: Comment): string;