UNPKG

react-native-executorch

Version:

An easy way to run AI models in react native with ExecuTorch

12 lines 493 B
import type { TurboModule } from 'react-native'; import type { EventEmitter } from 'react-native/Libraries/Types/CodegenTypes'; export interface Spec extends TurboModule { loadLLM(modelSource: string, tokenizerSource: string): Promise<string>; forward(input: string): Promise<string>; interrupt(): void; releaseResources(): void; readonly onToken: EventEmitter<string>; } declare const _default: Spec | null; export default _default; //# sourceMappingURL=NativeLLM.d.ts.map