// Generated by scripts/generate-tsrx-types.mjs for the built package. import type { Pluggable } from 'unified'; export interface AnimatePlugin { /** * Selects the isolated render state used by the next synchronous rehype run. * Streamdown calls this before rendering each block. */ setActiveBlock: (key: string | number) => void; /** * Returns the total HAST text node character count from the last * rehype run, then resets to 0. Use this value as the argument to * setPrevContentLength on the next render. */ getLastRenderCharCount: () => number; name: 'animate'; rehypePlugin: Pluggable; /** * Set the number of HAST text characters from a previous render. * Characters up to this count will get duration=0ms, preventing * re-animation of already-visible content during streaming updates. */ setPrevContentLength: (length: number) => void; type: 'animate'; } export interface AnimateOptions { animation?: 'fadeIn' | 'blurIn' | 'slideUp' | (string & {}); duration?: number; easing?: string; sep?: 'word' | 'char'; stagger?: number; } export declare function createAnimatePlugin(options?: AnimateOptions): AnimatePlugin; export declare const animate: AnimatePlugin;