/************
Processor: ts
************/
import * as __beyond_dep_ns_0 from 'react';
import __beyond_dep_def_0 from 'react';
// context.tsx
declare namespace ns_0 {
///
import IAudioInterface = ns_6.IAudioInterface;
interface IAudioContext {
audio?: HTMLAudioElement;
data?: IAudioInterface;
buffer?: AudioBuffer;
playing: boolean;
setPlaying: (value: boolean) => void;
currentTime: number;
setCurrentTime: (value: number) => void;
}
export const ComponentAudioContext: Context;
export const useComponentAudioContext: () => IAudioContext;
export {};
}
// hooks\use-audio.tsx
declare namespace ns_1 {
import React = __beyond_dep_def_0;
import IAudioInterface = ns_6.IAudioInterface;
type Response = {
ready: boolean;
audio: HTMLAudioElement;
buffer: AudioBuffer;
audioRef: React.MutableRefObject;
data: IAudioInterface;
error: boolean;
};
export function useAudio(src: any, convert: any): Response;
export {};
}
// index.tsx
declare namespace ns_2 {
import React = __beyond_dep_def_0;
export function AudioPlayer({
src,
convert
}: {
src: any;
convert: any;
}): React.JSX.Element;
}
// preload.tsx
declare namespace ns_3 {
import React = __beyond_dep_def_0;
export function Preload({}: {}): React.JSX.Element;
}
// progressbar.tsx
declare namespace ns_4 {
import React = __beyond_dep_def_0;
export function ProgressBar(): React.JSX.Element;
}
// timer.tsx
declare namespace ns_5 {
import React = __beyond_dep_def_0;
export function Timer(): React.JSX.Element;
}
// types\IAudioInterface.ts
declare namespace ns_6 {
export interface IAudioInterface {
format?: string;
src: string;
blob?: Blob;
duration?: number;
url?: string;
fileName?: string;
}
}
// visualizer.tsx
declare namespace ns_7 {
import React = __beyond_dep_def_0;
export function Visualizer(): React.JSX.Element;
}
export import AudioPlayer = ns_2.AudioPlayer;
export declare const hmr: {on: (event: string, listener: any) => void, off: (event: string, listener: any) => void };