/* tslint:disable */
/* eslint-disable */

const { existsSync } = require('fs')
const { join } = require('path')

let nativeBinding = null

// Try to load the native binding
try {
  if (existsSync(join(__dirname, 'index.node'))) {
    nativeBinding = require('./index.node')
  } else {
    throw new Error('index.node not found')
  }
} catch (e) {
  throw new Error(`Failed to load native binding: ${e.message}`)
}

// Export all bindings
module.exports = nativeBinding