UNPKG

@erosnicolau/animated-text

Version:

Advanced React animated text component with comprehensive animation effects

42 lines 1.35 kB
export interface WordToken { type: 'word' | 'html' | 'space'; content: string; wordIndex?: number; } export interface PhraseToken { type: 'phrase' | 'html' | 'space'; content: string; phraseIndex?: number; } export interface SequenceWordToken { type: 'word' | 'space'; content: string; wordIndex: number; } export interface TypewriterLetterToken { type: 'letter' | 'space'; content: string; letterIndex: number; } export interface WordTypewriterWordToken { type: 'word'; content: string; letters: Array<{ content: string; letterIndex: number; }>; } export interface WordTypewriterSpaceToken { type: 'space'; content: string; letterIndex: 0; isWordBoundary: true; } export type WordTypewriterToken = WordTypewriterWordToken | WordTypewriterSpaceToken; export declare const sanitizeHtml: (content: string) => string; export declare const tokenizeContent: (content: string) => WordToken[]; export declare const tokenizePhrases: (content: string) => PhraseToken[]; export declare const tokenizeWords: (content: string) => SequenceWordToken[]; export declare const tokenizeLetters: (content: string) => TypewriterLetterToken[]; export declare const tokenizeWordTypewriter: (content: string) => WordTypewriterToken[]; //# sourceMappingURL=textProcessing.d.ts.map