const PlaytorchCamera = require('./NativePlaytorchCamera').default;

// @ts-ignore error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
import type {Image, Foo2} from 'react-native-playtorch-image';

export function install(): void {
  return PlaytorchCamera.install();
}

export function doSomething2(image: Foo2): number {
  // @ts-ignore error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
  return global.__playtorch_camera__.doSomething(image);
}

export function doSomething(image: Image): number {
  // @ts-ignore error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
  return global.__playtorch_camera__.doSomething(image);
}
