// Thin re-export — the audio bus implementation lives in `@djangocfg/ui-core/hooks`.
// Kept as a re-export so existing imports keep working.

import { createSoundBus, type SoundBus } from '@djangocfg/ui-core/hooks';

import type { ChatAudioEvent, ChatAudioSounds } from './types';

export type ChatAudioBus = SoundBus<ChatAudioEvent>;

export function createAudioBus(options: {
  sounds: ChatAudioSounds;
  getVolume: () => number;
  getMuted: () => boolean;
  isEnabled: (event: ChatAudioEvent) => boolean;
}): ChatAudioBus {
  return createSoundBus<ChatAudioEvent>(options);
}

export { _resetUnlockForTesting } from '@djangocfg/ui-core/hooks';
