import type { Accessor } from "solid-js"; /** * Tracks whether a streaming response has stalled (no new tokens for a while) * and produces a smooth 0→1 intensity value suitable for color interpolation * (e.g. fading the spinner glyph toward red). * * Driven by an external clock signal rather than its own interval, so it * automatically slows down when the terminal is backgrounded (no ticks = no * updates) and doesn't create a second timer alongside the animation clock. * * ```ts * const time = useClock(50); * const stalled = useStalled(time, () => responseLength()); * // stalled.isStalled() — boolean * // stalled.intensity() — 0..1 * ``` */ export type StalledState = { isStalled: Accessor; intensity: Accessor; }; export declare function useStalled(time: Accessor, getLength: Accessor, opts?: { delayMs?: number; rampMs?: number; }): StalledState; //# sourceMappingURL=use-stalled.d.ts.map