UNPKG

react-native-audio-api

Version:

react-native-audio-api provides system for controlling audio in React Native environment compatible with Web Audio API specification

36 lines 1.33 kB
import type { ShareableWorkletCallback } from '../interfaces'; interface WorkletRuntime { __hostObjectWorkletRuntime: never; readonly name: string; } interface IWorkletsModule { makeShareableCloneRecursive: (workletCallback: ShareableWorkletCallback) => ShareableWorkletCallback; createWorkletRuntime: (runtimeName: string) => WorkletRuntime; } declare class AudioAPIModule { #private; supportedWorkletsVersion: string[]; 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; createAudioRuntime(): WorkletRuntime | null; } declare const _default: AudioAPIModule; export default _default; //# sourceMappingURL=AudioAPIModule.d.ts.map