import type { VoiceRenderer } from './renderers/types'; import type { VoiceVisualizationProps } from './types'; type ViewProps = VoiceVisualizationProps & { /** Whether a point, centred and normalized to the shorter side with y up, is on the shape. */ contains: (x: number, y: number) => boolean; /** Makes the renderer for a freshly mounted canvas, or null when it cannot draw there. */ createRenderer: (canvas: HTMLCanvasElement) => VoiceRenderer | null; /** Remounts the canvas and remakes the renderer when it changes. */ rendererKey: string; /** * The most device pixels per CSS pixel the canvas gets: a blurred shape looks the same at 1, * at a quarter of the pixels of a 2x display, while a thin line needs the screen's own. */ maxPixelRatio: number; }; /** * What VoiceWave and VoiceGlow share: the motion advanced once a frame, the canvas kept at the * element's size, the theme's colors, reduced motion, the pointer and the accessible name. * * The loop runs only while the element is on screen, reads `audioLevel` once a frame and * redraws without re-rendering React. */ export declare const VoiceVisualizationView: ({ audioLevel, className, colors, contains, createRenderer, expressivity, maxPixelRatio, onPointerLeave, onPointerMove, onPointerUp, rendererKey, state, ...restProps }: ViewProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=VoiceVisualizationView.d.ts.map