import type { EventSubscription } from 'expo-modules-core'; import type { Listener, MessageEvent } from './ExpoBrownfieldModule.types'; export type { EventSubscription } from 'expo-modules-core'; export type { MessageEvent }; /** * Navigates back to the native part of the app, dismissing the React Native view. * * @param animated Whether to animate the transition (iOS only). Defaults to `false`. * @default false */ export declare function popToNative(animated?: boolean): void; /** * Enables or disables the native back button behavior. When enabled, pressing the * back button will navigate back to the native part of the app instead of * performing the default React Navigation back action. * * @param enabled Whether to enable native back button handling. */ export declare function setNativeBackEnabled(enabled: boolean): void; /** * Adds a listener for messages sent from the native side of the app. * * @param listener A callback function that receives message events from native. * @returns A subscription object that can be used to remove the listener. * * @example * ```ts * const subscription = addMessageListener((event) => { * console.log('Received message from native:', event); * }); * * // Later, to remove the listener: * subscription.remove(); * ``` */ export declare function addMessageListener(listener: Listener): EventSubscription; /** * Sends a message to the native side of the app. The message can be received by * setting up a listener in the native code. * * @param message A dictionary containing the message payload to send to native. */ export declare function sendMessage(message: Record): void; /** * Removes a specific message listener. * * @param listener The listener function to remove. */ export declare function removeMessageListener(listener: Listener): void; /** * Removes all message listeners. */ export declare function removeAllMessageListeners(): void; /** * Gets the number of registered message listeners. * * @returns The number of active message listeners. */ export declare function getMessageListenerCount(): number; //# sourceMappingURL=ExpoBrownfieldModule.d.ts.map