import type { WaveProps as WaveComponentProps } from './Wave'; import type { HaloProps as HaloComponentProps } from './Halo'; export type { WaveProps } from './Wave'; export type { HaloProps } from './Halo'; export type SoundWaveMode = 'wave' | 'halo' | 'wave-halo'; export type WaveConfig = Omit; export type HaloConfig = Omit; export interface SoundWaveProps { /** * 音频源:MediaStream(用于实时录音可视化)或 Blob/File(用于已录制或上传的音频可视化) * @type { MediaStream | Blob | File | null } * @default undefined */ source?: MediaStream | Blob | File | null; /** * 可视化模式:wave-音波条,halo-光圈,wave-halo-同时显示 * @type { SoundWaveMode } * @default 'wave' */ mode?: SoundWaveMode; /** * 音波条配置 * @type { WaveConfig } * @default undefined */ wave?: WaveConfig; /** * 光圈配置 * @type { HaloConfig } * @default undefined */ halo?: HaloConfig; /** * 自定义类名 * @type { string } * @default undefined */ className?: string; }