/** * @file Pure helpers extracted from the Socket `Spinner` class body: option * parsing (theme/color resolution, shimmer config) and the shimmer rendering * pass. Keeping these side-effect-free and outside the class keeps the class * module focused on method wiring and under the file-size cap. */ import type { ColorRgb } from '../term/colors/types.js'; import type { ShimmerInfo, SpinnerOptions } from './types.js'; /** * Apply the shimmer effect to display text. Mutates the shimmer frame counter * as it advances. Skips work in CI or when the direction is 'none'. * * @param displayText - Text to colorize. * @param shimmer - Mutable shimmer state whose frame counter is advanced. * @param currentColor - The spinner's current RGB color, used for inherit. * * @returns Colorized text, or the input unchanged when shimmer is skipped. */ export declare function applyShimmer(displayText: string, shimmer: ShimmerInfo, currentColor: ColorRgb): string; /** * Parse the shimmer option, an object or a direction string, into a * `ShimmerInfo`. * * @param shimmer - The `shimmer` option value. * * @returns Parsed shimmer state, or undefined when shimmer is disabled. */ export declare function parseShimmerOption(shimmer: SpinnerOptions['shimmer']): ShimmerInfo | undefined; /** * Resolve the spinner's RGB color from options and the active theme. Validates * RGB tuples and falls back to the theme's primary color. * * @param opts - Normalized spinner options. * * @returns Resolved RGB color tuple. */ export declare function resolveSpinnerColorRgb(options: SpinnerOptions): ColorRgb;