"use strict";

import { TurboModuleRegistry, Platform } from 'react-native';

/**
 * Spec for the native sherpa-onnx module
 *
 * React Native's codegen system requires inline type definitions and
 * doesn't support imported interfaces. We have to define all types
 * directly in this file for it to work properly with codegen.
 */

/**
 * Get the native TurboModule (new architecture only).
 * Returns null on web platform.
 */
export function getNativeModule() {
  if (Platform.OS === 'web') {
    return null;
  }
  return TurboModuleRegistry.getEnforcing('SherpaOnnx');
}
export default getNativeModule();
//# sourceMappingURL=NativeSherpaOnnxSpec.js.map