@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
19 lines (18 loc) • 765 B
TypeScript
/**
* Typewriter animation for CLI streaming output.
* Writes text character-by-character with a configurable delay.
* @module cli/utils/typewriter
*/
/**
* Write text to stdout with a per-character typewriter animation.
* Falls back to raw write when delay is 0 or negative.
*/
export declare function typewriterWrite(text: string, delayMs?: number): Promise<void>;
/** Whether typewriter animation should be used for the current process. */
export declare function shouldAnimate(): boolean;
/**
* Write text to stdout with animation when stdout is a TTY, otherwise
* fall back to a raw write. Use this from CLI streaming code paths to
* keep the behaviour consistent in one place.
*/
export declare function animatedWrite(text: string): Promise<void>;