import { NativeModule, requireNativeModule } from "expo"; declare class ExpoSpellcheckerModule extends NativeModule { checkSpelling(word: string, language: string): Promise; getCompletions(sentence: string, language: string): Promise; //Tells the text checker to ignore the specified word when spell-checking. ignoreWord(word: string): Promise; //Returns the words that the text checker ignores when spell-checking. getIgnoredWords(): Promise; //Tells the text checker to learn the specified word so that it doesn’t evaluate it as misspelled. learnWord(word: string): Promise; //Tells the text checker to unlearn the specified word. unlearnWord(word: string): Promise; hasLearnedWord(word: string): Promise; getAvailableLanguages(): Promise; } // This call loads the native module object from the JSI. export default requireNativeModule("ExpoSpellchecker");