/** * Everyone is an animal in a colour ("Red Fox") until they add a name. Both come from the reviewer's public key, so * one identity is the same animal in the same colour on every page and every device that holds it. The UI draws each animal * (ui/animals.ts); this module only names them, so core code such as copy for AI can say who wrote what. */ export declare const ANIMALS: readonly ["Otter", "Fox", "Owl", "Bear", "Rabbit"]; export type Animal = (typeof ANIMALS)[number]; /** The colour each animal comes in, so 50 reviewers can be told apart before they add names. */ export declare const COLOURS: readonly ["Red", "Orange", "Yellow", "Green", "Teal", "Blue", "Purple", "Pink", "Brown", "Grey"]; /** Which animal (an index into ANIMALS) a reviewer is. */ export declare const animalOf: (author: string) => number; /** Which colour (an index into COLOURS) their animal is: from another part of the same hash. */ export declare const colourOf: (author: string) => number; /** A reviewer's animal in its colour, such as "Red Fox". */ export declare const animalName: (author: string) => string; /** A short, stable tag from a reviewer's key ("4F2A"), shown beside a name only where two people share it. */ export declare function shortId(author: string): string; /** * What to call a comment's writer: their name, or their animal until they add one; with their short tag when another * person in the document has the same name. An agent shows as "Claude", not "AI assistant · Claude". */ export declare const nameOf: (c: { author: string; name: string; alike?: boolean; }) => string; /** The name an assistant's replies carry: a person can't choose it, and a reply under it is drawn as an AI's. */ export declare const AI_NAME = "AI assistant"; export declare const isAiName: (name: string) => boolean; /** The name an agent's replies carry: "AI assistant · Muse". */ export declare const agentName: (agent: string) => string; /** * An agent's reply that someone else put here: named for an agent, but not written by a key the page lists, so the * agent didn't sign it. (A listed agent's own replies, people's comments and the on-device assistant's are not.) */ export declare const isPasted: (c: { author: string; name: string; }, listed: readonly string[]) => boolean;