/** * The balance pill and its upward-opening detail panel. * * The pill lives in the composer's ambient dock row beside the shipped token * statistics, and inherits their geometry: a shrink-wrapped anchor whose pill * carries the same 12/20 tertiary text tier and hover affordance. The panel is * portaled to `document.body` and anchored **above** the trigger with a viewport * clamp, because the dock sits inside the composer card and an inline surface * there would be clipped by that card's overflow. * * Nothing here decides money: every number comes from the host snapshot, and the * panel keeps the three figures apart so a projection is never mistaken for a * platform reading. * * @module dsh-balance/client/BalancePill */ import { type ReactNode } from 'react'; import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'; import type { BalanceSource } from './balance-source.js'; import { NS } from './locales.js'; /** The entry's injected face: one observable and one host verb. */ export interface BalanceInjected { hooks: { balance: BalanceSource; }; refresh: () => void; } /** Composed props of the composer-dock entry. */ export type BalancePillProps = PropsRuntime<'conversation.composer.dock'> & PropsLocale & InjectFace; /** * The composer-dock entry. * @param props - composed slot props with the injected balance source. * @returns the pill, plus its portaled panel while open. */ export declare function BalancePill(props: BalancePillProps): ReactNode;