react-native-audio-api
Version:
react-native-audio-api provides system for controlling audio in React Native environment compatible with Web Audio API specification
30 lines • 1.21 kB
TypeScript
import type { WorkletRuntime, IAudioAPIModule, IWorkletsModule } from './ModuleInterfaces';
declare class AudioAPIModule implements IAudioAPIModule {
private static readonly MIN_WORKLETS_VERSION;
constructor();
get workletsModule(): IWorkletsModule | null;
/**
* Indicates whether react-native-worklets are installed in matching version,
* for usage with react-native-audio-api.
*/
get canUseWorklets(): boolean;
/** Returns the installed worklets version or 'unknown'. */
get workletsVersion(): string;
/**
* Indicates whether react-native-worklets are installed, regardless of
* version support. Useful for asserting compatibility.
*/
get areWorkletsAvailable(): boolean;
/**
* Indicates whether the installed react-native-worklets version is supported.
* Useful for asserting compatibility.
*/
get isWorkletsVersionSupported(): boolean;
/** Returns the range of supported worklets versions. */
get supportedWorkletsVersion(): string[];
createAudioRuntime(): WorkletRuntime | null;
}
declare const _default: AudioAPIModule;
export default _default;
//# sourceMappingURL=AudioAPIModule.d.ts.map