UNPKG

react-native-executorch

Version:

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

47 lines 2.75 kB
import { Spec as ClassificationInterface } from './NativeClassification'; import { Spec as ObjectDetectionInterface } from './NativeObjectDetection'; import { Spec as StyleTransferInterface } from './NativeStyleTransfer'; import { Spec as ETModuleInterface } from './NativeETModule'; import { Spec as OCRInterface } from './NativeOCR'; import { Spec as VerticalOCRInterface } from './NativeVerticalOCR'; declare const LLM: any; declare const ETModule: any; declare const Classification: any; declare const ObjectDetection: any; declare const StyleTransfer: any; declare const SpeechToText: any; declare const OCR: any; declare const VerticalOCR: any; declare class _ObjectDetectionModule { forward(input: string): ReturnType<ObjectDetectionInterface['forward']>; loadModule(modelSource: string | number): ReturnType<ObjectDetectionInterface['loadModule']>; } declare class _StyleTransferModule { forward(input: string): ReturnType<StyleTransferInterface['forward']>; loadModule(modelSource: string | number): ReturnType<StyleTransferInterface['loadModule']>; } declare class _SpeechToTextModule { generate(waveform: number[][]): Promise<number[]>; loadModule(modelName: String, modelSources: (string | number)[]): Promise<any>; encode(input: number[]): Promise<any>; decode(prevTokens: number[], encoderOutput?: number[]): Promise<any>; } declare class _ClassificationModule { forward(input: string): ReturnType<ClassificationInterface['forward']>; loadModule(modelSource: string | number): ReturnType<ClassificationInterface['loadModule']>; } declare class _OCRModule { forward(input: string): ReturnType<OCRInterface['forward']>; loadModule(detectorSource: string, recognizerSourceLarge: string, recognizerSourceMedium: string, recognizerSourceSmall: string, symbols: string): Promise<any>; } declare class _VerticalOCRModule { forward(input: string): ReturnType<VerticalOCRInterface['forward']>; loadModule(detectorLargeSource: string, detectorMediumSource: string, recognizerSource: string, symbols: string, independentCharacters: boolean): ReturnType<VerticalOCRInterface['loadModule']>; } declare class _ETModule { forward(inputs: number[][], shapes: number[][], inputTypes: number[]): ReturnType<ETModuleInterface['forward']>; loadModule(modelSource: string): ReturnType<ETModuleInterface['loadModule']>; loadMethod(methodName: string): ReturnType<ETModuleInterface['loadMethod']>; } export { LLM, ETModule, Classification, ObjectDetection, StyleTransfer, SpeechToText, OCR, VerticalOCR, _ETModule, _ClassificationModule, _StyleTransferModule, _ObjectDetectionModule, _SpeechToTextModule, _OCRModule, _VerticalOCRModule, }; //# sourceMappingURL=RnExecutorchModules.d.ts.map