import type { WebView, WebViewMessageEvent } from 'react-native-webview'; import type { Instruction } from '@mappedin/webview-bridge'; /** * React hook for communicating with a WebView or iframe using a bridge pattern. * Automatically detects platform and uses appropriate communication method. * * @param container - The WebView instance (React Native) or HTMLIFrameElement (web) - can be null * @returns An object containing the instruct function, handleMessage callback, cleanup function, and isReady state */ export declare function useBridge(container: WebView | HTMLIFrameElement | null): { instruct: (instruction: Instruction) => Promise; handleMessage: (event: WebViewMessageEvent | MessageEvent) => void; destroy: () => void; isReady: boolean; injectJavaScript: (src: string) => Promise; }; export type UseBridgeHook = ReturnType; //# sourceMappingURL=use-bridge.d.ts.map