/** * Pure interpolation step: given the currently displayed value and the target, * returns the next displayed value. Always increases by at least 1 when behind, * never overshoots, and never decreases. */ export declare function nextDisplayed(current: number, target: number): number; export interface AnimatedTokensProps { /** Monotonically-increasing target value to count up toward. */ target: number; /** * When true, the component keeps its interval running even after catching up * to `target` so it can animate further increases. When false, the interval * self-stops once displayed === target. */ active: boolean; /** * When true, `target` reflects the authoritative total from the adapter's * `metadata.tokenUsage` (not the chars/5 estimate). The `~` prefix is * dropped once the displayed value catches up to this true target. */ isFinal?: boolean; } /** * Smoothly counts up a number toward `target`. Never overshoots. Never * counts down — if `target` regresses (it shouldn't, by design), the displayed * value simply holds until target catches up. */ export declare function AnimatedTokens({ target, active, isFinal }: AnimatedTokensProps): import("react").JSX.Element | null; //# sourceMappingURL=AnimatedTokens.d.ts.map