import type { TurboModule } from 'react-native'; import { TurboModuleRegistry } from 'react-native'; export interface DefrostType { sendPerformanceEvent: (timestamp: string, event: string) => Promise; writeInLogFiles: ( timestamp: string, tree: { change: string; list: Array<{ componentName: string; flags: number; key: string }>; } ) => Promise; } export interface Spec extends TurboModule { sendPerformanceEvent: (timestamp: string, event: string) => Promise; writeInLogFiles: ( timestamp: string, tree: { change: string; list: Array<{ componentName: string; flags: number; key: string }>; } ) => Promise; } export default TurboModuleRegistry.get('DefrostModule');