import type { Hsv, VoiceAgentState } from './types'; export type VoiceDriverInput = { /** One to five colors. */ colors: Hsv[]; /** From 0 to 2. */ expressivity: number; reduceMotion: boolean; state: VoiceAgentState; /** From 0 to 1, or null when no live audio drives the motion. */ audioLevel?: number | null; }; export declare const NO_TAP = 100; /** How fast time runs under reduced motion. */ export declare const REDUCED = 0.07; /** Per-frame easing at 60 Hz of a live audio level. */ export declare const MIC = 0.35; /** Expressivity scales amplitude and speed, each with a floor so the motion breathes at 0. */ export declare const scales: (expressivity: number) => { amplitude: number; speed: number; }; /** * The share of the way a value moves in `dt` seconds when it moves `perFrame` of the way each * frame at 60 Hz. */ export declare const ease: (perFrame: number, dt: number) => number; /** The five color slots the renderers read; past the palette they repeat its first color. */ export declare const slots: (colors: Hsv[]) => Hsv[]; /** * The motion of a voice visualization: where it is in time, how it moves, and its colors. * * Each value eases toward the state's motion by a fixed share per frame at 60 Hz, converted to * time, so it moves the same at any refresh rate. The shader and the Canvas drawing read the * same values, so the renderers move alike. */ export declare class VoiceVisualizationDriver { speed: number; bright: number; sat: number; load: number; flow: number; expressivity: number; time: number; flowSpin: number; orbSpin: number; count: number; tapX: number; tapY: number; tapAge: number; hoverX: number; hoverY: number; hoverAmount: number; mic: number; voice: number; private baseReact; /** The colors drawn, eased in place toward `targets`, the palette's slots. */ private colors; private targets; private isHovering; private bounce; private currentInput; constructor(input: VoiceDriverInput); get input(): VoiceDriverInput; set input(value: VoiceDriverInput); /** Live audio lifts the motion to its level, whatever the state. */ get react(): number; /** The scale of a tap's bounce. */ get scale(): number; /** Color slot `index`, 0 to 4; past the palette the slots repeat its first color. */ color(index: number): Hsv; tap(x: number, y: number): void; /** Where a pointer hovers, or null once it has left. */ hover(x: number | null, y: number | null): void; advance(seconds: number): void; } //# sourceMappingURL=driver.d.ts.map