import React from 'react'; /** * The type of screen sharing to use on iOS. * * - `'broadcast'` — Uses a Broadcast Upload Extension (RPSystemBroadcastPickerView). * Captures the entire device screen, works across all apps. Requires an extension target. * - `'inApp'` — Uses RPScreenRecorder.startCapture to capture the current app's screen. * Only captures the current app. Supports `.audioApp` sample buffers for audio mixing. * * On Android, this option is ignored — the system screen capture dialog is always used. */ export type ScreenShareType = 'broadcast' | 'inApp'; /** * Options for screen share behavior. */ export type ScreenShareOptions = { /** * The type of screen sharing on iOS. Default: `'broadcast'`. * On Android this is ignored. */ type?: ScreenShareType; /** * Whether to capture and mix system/app audio into the microphone audio track. * When `true`, remote participants will hear media audio from the shared screen * (e.g., YouTube video audio) mixed with the user's microphone. * * - iOS in-app: Audio captured from RPScreenRecorder `.audioApp` buffers. * - iOS broadcast: Audio captured in the Broadcast Upload Extension and * streamed to the app over a dedicated socket, then mixed into the audio track. * - Android: Audio captured via AudioPlaybackCaptureConfiguration (API 29+). * * Default: `false`. */ includeAudio?: boolean; }; export declare const useScreenShareButton: ( /** * Ref of the ScreenCapturePickerView component. * Required for iOS broadcast screen sharing. Can be `null` for in-app mode. */ screenCapturePickerViewiOSRef: React.MutableRefObject, /** * Handler to be called when the screen-share has been started. * */ onScreenShareStartedHandler?: () => void, /** * Handler to be called when the screen-share has been stopped. * */ onScreenShareStoppedHandler?: () => void, /** * Handler to be called when the permissions to stream screen share media is missing * */ onMissingScreenShareStreamPermission?: () => void, /** * Options for screen share behavior (type, includeAudio). */ screenShareOptions?: ScreenShareOptions) => { onPress: undefined; hasPublishedScreenShare: boolean; } | { onPress: () => Promise; hasPublishedScreenShare: boolean | undefined; }; //# sourceMappingURL=useScreenShareButton.d.ts.map