import { TurboModuleRegistry, type TurboModule } from 'react-native'; /** * raw bridge shape. the strict public types live in `record.ts`; this stays * `string` because the native module codegen does not support narrowed types. */ export type NativeDIDRecord = { did: string; createdAt: string; }; export interface Spec extends TurboModule { setOTP(otp: string): void; setDID(did: string): void; startGatt(): void; stopGatt(): void; hasServerPermissions(): boolean; getRecord(): string; setDIDHandler(handler: (record: NativeDIDRecord) => void): void; startClient(otp: string): void; stopClient(): void; hasClientPermissions(): boolean; setClientErrorHandler(handler: (message: string) => void): void; } export default TurboModuleRegistry.getEnforcing('RTNbleServer');