/**
 * WordAnimationContext
 * Provides a global word counter for word-by-word fade-in animation
 * inside markdown-rendered content. Works like AnimatedText but across
 * all markdown elements (paragraphs, headings, lists, blockquotes, etc.).
 */
import React from "react";
interface WordAnimationContextValue {
    /** Process children of a prose element, animating recent words */
    processChildren: (children: React.ReactNode) => React.ReactNode;
    /** Count words in children without animating (for code blocks, tables, etc.) */
    skipChildren: (children: React.ReactNode) => void;
}
export declare const useWordAnimation: () => WordAnimationContextValue | null;
export interface WordAnimationProviderProps {
    children: React.ReactNode;
    /** Full markdown content string — used to compute total word count */
    content: string;
    /** Whether animation is active */
    enabled: boolean;
    /** Number of recent words to animate (older ones render as static text) */
    animateLastN?: number;
    /** Whether cursor is present in content */
    hasCursor?: boolean;
}
export declare const WordAnimationProvider: React.FC<WordAnimationProviderProps>;
export {};
