"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
exports.getNativeModule = getNativeModule;
var _reactNative = require("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.
 */
function getNativeModule() {
  if (_reactNative.Platform.OS === 'web') {
    return null;
  }
  return _reactNative.TurboModuleRegistry.getEnforcing('SherpaOnnx');
}
var _default = exports.default = getNativeModule();
//# sourceMappingURL=NativeSherpaOnnxSpec.js.map