import { type MutableRefObject } from 'react'; import type { NativeSyntheticEvent } from 'react-native'; import type { WebView } from 'react-native-webview'; import type { WebViewMessage } from 'react-native-webview/lib/WebViewTypes'; export type WebViewRefType = MutableRefObject; export type OnMessageRefType = MutableRefObject<(event: NativeSyntheticEvent) => void>; /** * Merges multiple MutableRefObject references into a single reference. * - If the references are for WebView (`WebViewRefType`), setting the `.current` property of the merged reference * will set the `.current` property of all individual references. * - If the references are for a function (`OnMessageRefType`), invoking the merged reference's `.current` method * will invoke all the individual reference methods. * * @template T - Type of the reference, can be `WebViewRefType` or `OnMessageRefType`. * @param {...T[]} references - Array of MutableRefObject references. * @returns {T} - Merged MutableRefObject reference. */ export declare function useMergedReference(...references: T[]): T;