import type { RingingCallLifecycleHooks, StreamVideoConfig } from './types'; type DeepPartial = { [P in keyof T]?: T[P] extends object ? DeepPartial : T[P]; }; export declare class StreamVideoRN { private static config; /** * Update the global config for StreamVideoRN except for push config. * To set push config use `StreamVideoRN.setPushConfig` instead. * This function accepts a partial config object that will be deeply merged with the default config. */ static updateConfig(updateConfig: DeepPartial>): void; /** * Set the push config for StreamVideoRN. * This method must be called **outside** of your application lifecycle, e.g. alongside your * `AppRegistry.registerComponent()` method call at the entry point of your application code. * Since the app can be opened from a dead state through a push notification * Note: This function must be called only once. Further calls will be ignored. * @example // in index.js * import { AppRegistry } from 'react-native'; * import { StreamVideoRN } from '@stream-io/video-react-native-sdk'; * import App from './App'; * // Set push config * const pushConfig = {}; // construct your config * // Set CallKit/Android Telecom API integration options. All params are optional. If not provided, the default values will be used. * const callingExpOptions = { * ios: { * callsHistory: true, * displayCallTimeout: 60000, * sound: 'ringtone', * imageName: 'callkit_icon', * }, * android: { * incomingChannel: { * id: 'stream_incoming_call_notifications', * name: 'Call notifications', * vibration: true, * sound: 'default', * }, * titleTransformer: (memberName: string, incoming: boolean) => * incoming * ? `${memberName} is calling you` * : `You are calling ${memberName}`, * }, * }; * StreamVideoRN.setPushConfig(pushConfig, callingExpOptions); * AppRegistry.registerComponent('app', () => App); */ static setPushConfig(pushConfig: NonNullable): void; /** * Register hooks that run around a ringing call's join, for every ringing path: * accepted from the CallKit/Telecom UI, accepted inside the app, and outgoing. * * Call this at your application's entry point, alongside * {@link StreamVideoRN.setPushConfig} and **outside** the React tree. A call * accepted from a push notification can be created and joined before any * component mounts, so hooks registered from inside React would be missed on * exactly the path that most needs them. * * Calling it again replaces the previously registered hooks. * * @example // in index.js * StreamVideoRN.setRingingCallLifecycleHooks({ * onBeforeCallJoin: (call) => attachE2EEIfConfigured(call), * onAfterCallLeave: (call) => disposeE2EEManager(call), * }); */ static setRingingCallLifecycleHooks: (hooks: RingingCallLifecycleHooks) => void; static getConfig(): StreamVideoConfig; /** * This is the function to be called when the push token must be removed. * Typically used on user logout. */ static onPushLogout(): Promise; static clearPushLogoutCallbacks(): void; /** * Android only. Opt out of the Android 11+ communication-mode keep-alive. * * By default the SDK plays a silent voice-communication track for the duration of a * communicator-role call, so Android does not reset `MODE_IN_COMMUNICATION` ~6s after it is * set (which breaks audio routing and echo cancellation). * See {@link https://issuetracker.google.com/issues/209493718} * * Call this at app start, alongside {@link setPushConfig} — the native audio manager * rejects the change once it has been activated for a call. No-op on iOS and on * Android below API 30. */ static setDisableCommunicationModeWorkaround(disabled: boolean): void; /** * Play native busy tone for call rejection */ static playBusyTone(): Promise; /** * Stop native busy tone */ static stopBusyTone(): Promise; /** * Check if the device has audio output hardware * @returns True if the device has audio output hardware */ static androidHasAudioOutputHardware(): Promise; /** * Check if the device has microphone hardware * @returns True if the device has microphone hardware */ static androidHasMicrophoneHardware(): Promise; /** * Check if the device has camera hardware * @returns True if the device has camera hardware */ static androidHasCameraHardware(): Promise; } export {}; //# sourceMappingURL=index.d.ts.map