import type { SessionAvatar as SessionAvatarValue, SessionAvatarIcon } from "@opengeni/sdk"; export type SessionAvatarKind = "none" | "emoji" | "icon" | "letters" | "image"; /** Twelve evenly readable hues for the avatar tile. */ export declare const SESSION_AVATAR_HUES: readonly [0, 28, 55, 85, 130, 160, 190, 215, 245, 275, 305, 335]; /** Everything the picker edits, kept across kinds so switching back keeps a choice. */ export type SessionAvatarDraft = { kind: SessionAvatarKind; hue: number; emoji: string; icon: SessionAvatarIcon; letters: string; }; /** The colour a new avatar starts with, stable for the same seed (a chat or template id). */ export declare function sessionAvatarSeedHue(seed: number): number; /** A draft showing `avatar`, or `emptyKind` with defaults when there is none. */ export declare function sessionAvatarDraft(avatar: SessionAvatarValue | null, fallbackHue: number, emptyKind?: SessionAvatarKind): SessionAvatarDraft; /** The avatar a draft saves as; null for "none" or while the emoji or letters are invalid. */ export declare function sessionAvatarFromDraft(draft: SessionAvatarDraft, name: string, image: SessionAvatarValue | null): SessionAvatarValue | null; /** Why a draft can't be saved, as field errors; empty when it can. */ export declare function sessionAvatarDraftErrors(draft: SessionAvatarDraft, name: string, image: SessionAvatarValue | null): { emoji?: string; letters?: string; }; export declare function SessionAvatarPicker({ draft, onChange, name, image, errors, label, allowNone, }: { draft: SessionAvatarDraft; onChange: (draft: SessionAvatarDraft) => void; /** The name the letters default to. */ name: string; /** An image the agent set, offered as the "Image" kind while it is the saved one. */ image: SessionAvatarValue | null; errors?: { emoji?: string | null | undefined; letters?: string | null | undefined; } | undefined; label?: string | undefined; /** False when an avatar is required: no "No avatar" action. */ allowNone?: boolean | undefined; }): import("react").JSX.Element; /** * The avatar as a button that opens the picker in a popover, for forms where * the avatar sits next to the name and the full picker would crowd the fields. * Pass `open` and `onOpenChange` to open it when the draft can't be saved. */ export declare function SessionAvatarPickerButton({ draft, onChange, name, image, errors, label, allowNone, workspaceId, seed, open, onOpenChange, }: Parameters[0] & { /** Where an image avatar lives. */ workspaceId: string; /** Keeps an image's fallback colour stable. */ seed?: string | undefined; open?: boolean | undefined; onOpenChange?: ((open: boolean) => void) | undefined; }): import("react").JSX.Element;