/** * Applies a sweeping gradient animation to a plain text string. * A bright spot moves left-to-right across the text. * * @param text - Plain text to colorize (no ANSI codes) * @param offset - Current animation offset (0-1, wraps around) * @param color - Optional hex color override (defaults to green accent) * @param fadeProgress - 0 = full animation, 1 = fully idle (flattens gradient) * @returns Chalk-colored string */ export declare function applyGradientSweep(text: string, offset: number, color?: string, fadeProgress?: number): string; /** * Manages the gradient sweep animation state. * Call `start()` when agent begins working, `stop()` when idle. * On each tick, call `getOffset()` to get the current sweep position. */ export declare class GradientAnimator { private offset; private intervalId; private onTick; private _isFadingOut; private _isFadingIn; private _fadeProgress; constructor(onTick: () => void); start(): void; /** * Smoothly fade the gradient to idle state over ~500ms. */ fadeOut(): void; stop(): void; getOffset(): number; /** 0 = full animation, 1 = fully idle. Use to interpolate colors. */ getFadeProgress(): number; isFadingOut(): boolean; isFadingIn(): boolean; isRunning(): boolean; } //# sourceMappingURL=obi-loader.d.ts.map