import type { Comment } from "../model/types"; /** The quick row: what a reviewer can react with at a tap. (The full set of emoji is the emoji add-on's.) */ export declare const QUICK: readonly ["👍", "❤️", "😂", "🎉", "😮", "🙏"]; /** The full emoji picker, when an add-on provides one: Pipeup draws the popover, the add-on fills it. */ export interface ReactionPicker { /** Fills the popover; `pick` hears the chosen emoji. May return a function that tears the picker down. */ fill(into: HTMLElement, pick: (emoji: string) => void): void | (() => void); /** The emoji's name, for screen readers. */ name(emoji: string): string | undefined; } /** Opens the picker in a popover beside `anchor`; it closes on a choice, Escape, a click elsewhere or when asked. */ export declare function openPicker(anchor: HTMLElement, picker: ReactionPicker, pick: (emoji: string) => void): void; export interface ReactionOptions { /** The full picker, when an add-on has one: the quick row then ends with a button that opens it. */ picker?: ReactionPicker | null; /** This reviewer's key, to mark their own reactions. */ me: string; /** Reactions can't be added or taken back on a resolved thread; they still show. */ resolved: boolean; /** The quick row is open under this comment. */ quick: boolean; /** Only the quick row, never the chips (a closed card in All comments counts reactions in its last line). */ bare?: boolean; /** Gives or takes back a reaction. */ react(emoji: string, on: boolean): void; /** Chips and quick buttons already on the page once, so only new ones ease in. */ seen: Set; } /** * What people reacted to a comment with, quietly beneath its words: each emoji with how many gave it (yours marked; * pointing at one says who), and, when asked for, the quick row. Nothing for a comment nobody reacted to. */ export declare function reactionRow(c: Comment, o: ReactionOptions): HTMLElement | null;