/** * Character-by-character typewriter text animation. * * @module bquery/motion */ import type { TypewriterControls, TypewriterOptions } from './types'; /** * Animate text appearing character by character in an element. * * @param element - The element to type text into * @param text - The text to display * @param options - Typewriter configuration * @returns Controls with `.stop()` to cancel and `.done` promise * * @example * ```ts * const tw = typewriter( * document.querySelector('#output')!, * 'Hello, world!', * { speed: 80, cursor: true }, * ); * * // Wait for it to finish: * await tw.done; * * // Or cancel early: * tw.stop(); * ``` */ export declare const typewriter: (element: HTMLElement, text: string, options?: TypewriterOptions) => TypewriterControls; //# sourceMappingURL=typewriter.d.ts.map