UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

29 lines (28 loc) 1.19 kB
import type { AvatarVisualDefinition, AvatarVisualId } from '../types/AvatarVisualDefinition'; /** * Built-in avatar visuals available to the app. * * @private shared registry for the avatar rendering system */ export declare const AVATAR_VISUALS: ReadonlyArray<AvatarVisualDefinition>; /** * Returns one avatar visual by its identifier. * * @param visualId Requested visual identifier. * @returns Matching visual definition. * * @private shared registry for the avatar rendering system */ export declare function getAvatarVisualById(visualId: AvatarVisualId): AvatarVisualDefinition; /** * Resolves a user-facing avatar visual value to a supported built-in visual id. * * The lookup is derived from `AVATAR_VISUALS`, so new visuals become selectable by * adding them to the registry rather than updating parser-specific option lists. * * @param value Raw visual id/title, for example `PIXEL_ART`, `pixel art`, or `pixel-art`. * @returns Matching visual id or `null` when the value is empty/unknown. * * @private shared registry for the avatar rendering system */ export declare function resolveAvatarVisualId(value: string | null | undefined): AvatarVisualId | null;