import type { HostComponent, ViewProps } from 'react-native'; import type { BubblingEventHandler, Double, Float, Int32 } from 'react-native/Libraries/Types/CodegenTypes'; export interface StreamEvent { stream: { name: string; streamId: string; hasAudio: boolean; hasCaptions: boolean; hasVideo: boolean; sessionId: string; width: Double; height: Double; videoType: string; connection: { creationTime: string; data: string; connectionId: string; }; creationTime: string; }; } export interface StreamErrorEvent extends StreamEvent { error: { code: string; message: string; }; } export type EmptyEvent = {}; export interface SubscriberVideoNetworkStatsEvent extends StreamEvent { jsonStats: string; } export interface SubscriberAudioStatsEvent extends StreamEvent { jsonStats: string; } export interface SubscriberAudioLevelEvent extends StreamEvent { audioLevel: Float; } export interface SubscriberRTCStatsReportEvent extends StreamEvent { jsonStats: string; } export interface SubscriberCaptionEvent extends StreamEvent { text: string; isFinal: boolean; } export interface VideoDisabledEvent extends StreamEvent { reason: string; } export interface VideoEnabledEvent extends StreamEvent { reason: string; } export interface NativeProps extends ViewProps { sessionId: string; streamId: string; subscribeToAudio?: boolean; subscribeToVideo?: boolean; scaleBehavior?: string; subscribeToCaptions?: boolean; audioVolume?: Float; preferredFrameRate?: Int32; preferredResolution?: string; onSubscriberConnected?: BubblingEventHandler | null; onSubscriberDisconnected?: BubblingEventHandler | null; onSubscriberError?: BubblingEventHandler | null; onRtcStatsReport?: BubblingEventHandler | null; onAudioLevel?: BubblingEventHandler | null; onAudioNetworkStats?: BubblingEventHandler | null; onCaptionReceived?: BubblingEventHandler | null; onVideoDataReceived?: BubblingEventHandler | null; onVideoDisabled?: BubblingEventHandler | null; onVideoDisableWarning?: BubblingEventHandler | null; onVideoDisableWarningLifted?: BubblingEventHandler | null; onVideoEnabled?: BubblingEventHandler | null; onVideoNetworkStats?: BubblingEventHandler | null; } declare const _default: HostComponent; export default _default; //# sourceMappingURL=OTSubscriberNativeComponent.d.ts.map