/** * NativeDialogInterceptor — Intercepts native Alert and Permission dialogs * so AI agents can interact with them. * * Native Alerts and Permission dialogs exist outside the React fiber tree, * making them invisible to the introspector. This interceptor bridges the gap: * * - **Alert.alert()**: Registers alert buttons as tappable elements. * When an agent is connected, the native dialog is suppressed (can't be * dismissed programmatically). When no agent is connected, the native * dialog is shown normally. * * - **PermissionsAndroid.request()**: Registers "Grant" and "Deny" as * tappable elements. When an agent is connected, the native permission * dialog is suppressed and the promise resolves when the agent taps a * button. When no agent is connected, the native dialog is shown normally. * * - **react-native-permissions** (optional): If installed, patches `request()` * and `requestMultiple()` to intercept iOS/Android permission dialogs * (push notifications, location, camera, etc.). */ /** * Install the native dialog interceptor. * * @param isConnected Callback that returns true when an agent is connected. * When connected, native dialogs are suppressed. When not, they show normally. */ export declare function installNativeDialogInterceptor(isConnected: () => boolean): void; /** * Remove the interceptor and restore original native methods. */ export declare function uninstallNativeDialogInterceptor(): void; //# sourceMappingURL=NativeDialogInterceptor.d.ts.map