import { NativeModule } from 'expo-modules-core'; export type CustomMessageHandlerModuleEvents = { onReceivedSynchronousMessage: ({ nativeId, id, message, data, }: { nativeId: string; id: number; message: string; data: string | undefined; }) => void; onReceivedAsynchronousMessage: ({ nativeId, message, data, }: { nativeId: string; message: string; data: string | undefined; }) => void; }; /** * Native CustomMessageHandlerModule using Expo modules API. * Provides modern async/await interface while maintaining backward compatibility. */ declare class CustomMessageHandlerModule extends NativeModule { registerHandler(nativeId: string): Promise; destroy(nativeId: string): Promise; onReceivedSynchronousMessageResult(id: number, result: string | undefined): Promise; sendMessage(nativeId: string, message: string, data: string | undefined): Promise; } declare const _default: CustomMessageHandlerModule; export default _default; //# sourceMappingURL=customMessageHandlerModule.d.ts.map