import { AudioEventSubscription } from '../events'; import { SystemEventCallback, SystemEventName } from '../events/types'; import { AudioDevicesInfo, AudioFocusType, IAudioManager, PermissionStatus, SessionOptions } from './types'; declare class AudioManager implements IAudioManager { private readonly audioEventEmitter; constructor(); getDevicePreferredSampleRate(): number; setAudioSessionActivity(enabled: boolean): Promise; setAudioSessionOptions(options: SessionOptions): void; disableSessionManagement(): void; observeAudioInterruptions(param: AudioFocusType | boolean | null): void; /** * @param enabled - Whether to actively reclaim the session or not * @experimental more aggressively try to reactivate the audio session during interruptions. * It is subject to change in the future and might be removed. * * In some cases (depends on app session settings and other apps using audio) system may never * send the `interruption ended` event. This method will check if any other audio is playing * and try to reactivate the audio session, as soon as there is "silence". * Although this might change the expected behavior. * * Internally method uses `AVAudioSessionSilenceSecondaryAudioHintNotification` as well as * interval polling to check if other audio is playing. */ activelyReclaimSession(enabled: boolean): void; observeVolumeChanges(enabled: boolean): void; addSystemEventListener(name: Name, callback: SystemEventCallback): AudioEventSubscription; requestRecordingPermissions(): Promise; checkRecordingPermissions(): Promise; requestNotificationPermissions(): Promise; checkNotificationPermissions(): Promise; getDevicesInfo(): Promise; setInputDevice(deviceId: string): Promise; } declare const _default: AudioManager; export default _default; //# sourceMappingURL=AudioManager.d.ts.map