import { TurboModuleRegistry, RootTag } from 'react-native';
import type { TurboModule } from 'react-native/Libraries/TurboModule/RCTExport';
interface GlObj {
  frag:string;
  name:string;
}
export interface Spec extends TurboModule {
  addShader (id: number, shader: GlObj,callback:(err:string,res:string)=>void): void;
  removeShader (id: number): void;
}

export default TurboModuleRegistry.get<Spec>('RNGLContext')!;
