import React from 'react'; import type { BBChannelProps, BBChannelRef } from '../types'; type BBPlayerViewMethodsType = any; /** * Player mode for BBChannelWithPlayer */ export type PlayerMode = 'inline' | 'fullscreen'; /** * Props for BBChannelWithPlayer component */ export interface BBChannelWithPlayerProps extends BBChannelProps { /** * Player mode: * - 'inline': Native player fixed at top, WebView content below * - 'fullscreen': Native player opens as fullscreen overlay when playing * @default 'inline' */ playerMode?: PlayerMode; /** * Height of the inline player (only used when playerMode='inline') * If not specified, computed from the measured container width and playerAspectRatio * @default undefined */ playerHeight?: number; /** * Aspect ratio for the inline player (only used when playerHeight is not set) * @default 16/9 */ playerAspectRatio?: number; /** * Show back arrow above player when can go back (inline mode only) * @default true */ showBackArrow?: boolean; /** * Custom back arrow component */ renderBackArrow?: (onPress: () => void) => React.ReactNode; /** * JWT token passed to both channel and native player */ jwt?: string; /** * Called when native player state changes */ onNativePlayerStateChange?: (state: 'idle' | 'loading' | 'playing' | 'paused' | 'ended') => void; /** * Called when native player encounters an error */ onNativePlayerError?: (error: string) => void; } /** * Extended ref for BBChannelWithPlayer */ export interface BBChannelWithPlayerRef extends BBChannelRef { /** * Get the native player ref for direct control */ getNativePlayerRef: () => React.RefObject | null; /** * Dismiss the native player (stop playback and hide) */ dismissNativePlayer: () => void; } /** * BBChannelWithPlayer - Channel component with integrated native player * * For fullscreen/modal playback (inline placeholder taps, fullscreen mode), * uses BBModalPlayer API to present a native modal player directly — no * React view mount needed. For detail page inline player, renders BBPlayerView. */ export declare const BBChannelWithPlayer: React.ForwardRefExoticComponent>; export default BBChannelWithPlayer; //# sourceMappingURL=BBChannelWithPlayer.d.ts.map