import { Howl } from 'howler'; import { AudioPlayerProps } from '../AudioPlayer.types'; export type AudioLoadingState = ReturnType; export type UseAudioManagerProps = Pick & { /** Controls whether the audio plays. Setting it to `true` starts playback and setting it back to `false` pauses it. */ playing: boolean; /** Allows the seek position to be read on every animation frame while the audio plays. Set it to `false` while the user drags the slider, so the loop doesn't overwrite the dragged position. */ allowSeekLoop: boolean; /** Defines a callback function which is called after the audio is stopped and unloaded. */ onDestroy?: () => void; }; export type AudioManager = { loadingState: AudioLoadingState; duration: number; seek: number; setSeek: (pos: number) => void; }; export declare const useAudioManager: ({ src, playing, format, preload, webAudioAPI, allowSeekLoop, volume, onEnd, onLoad, onPlay, onPause, onSeek, onLoadError, onDestroy, }: UseAudioManagerProps) => AudioManager; //# sourceMappingURL=AudioManager.d.ts.map