type Options = { str: string; speed?: number; placeholderChar?: string; frameOffset?: number; charOffset?: number; charStep?: number; minCharCode?: number; maxCharCode?: number; onProgress?: (arg0: string) => void; onComplete?: (arg0: string) => void; }; declare class RandomText { static defaults: Options; str: string; speed: number; placeholderChar: string; frameOffset: number; charOffset: number; charStep: number; minCharCode: number; maxCharCode: number; onProgress: (...args: Array) => string; onComplete: (...args: Array) => string; rafId: number; constructor(options: Options); start: () => void; stop(): void; /** * Every frame advances the first `stepCount` characters towards their target and leaves * the rest where they are. The whole array is mapped, not a `slice` of it: a character * that has not started yet is still far from its target, so it comes out as the * placeholder instead of coming out as nothing. The string therefore has its final * length from the very first frame, which is what keeps the box from collapsing - an * output of zero characters has no line box at all, and everything around it jumps. */ step(randoms: number[], stepCount: number, speed: number): void; } export default RandomText;