module.d.ts 1018B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. export declare enum Lang {
  2. System = "system",
  3. ZH = "zh",
  4. ZH_TW = "zh-tw",
  5. ZH_HK = "zh-hk",
  6. EN = "en",
  7. ID = "id",
  8. JA = "ja",
  9. KO = "ko",
  10. RU = "ru",
  11. AR = "ar",
  12. ES = "es",
  13. PT_PT = "pt-pt",
  14. FR = "fr",
  15. DE = "de"
  16. }
  17. export declare enum BackgroundBlurEffectIOS {
  18. None = -1,
  19. ExtraLight = 0,
  20. Light = 1,
  21. Dark = 2,
  22. Regular = 3,
  23. Prominent = 4
  24. }
  25. declare type Callback = (_: any) => void;
  26. export declare const start: (option: IGSOption) => void;
  27. export declare const stop: (callback: Callback) => void;
  28. export declare const addListener: (listener: Callback) => import("react-native").EmitterSubscription;
  29. interface IGSOption {
  30. api1Result: string;
  31. debug: boolean;
  32. loadTimeout: number;
  33. reqTimeout: number;
  34. lang: Lang;
  35. enableBackgroundCancel: boolean;
  36. backgroundColorIOS: number;
  37. backgroundBlurEffectIOS: BackgroundBlurEffectIOS;
  38. }
  39. export declare function parseOption(o: any, defaultOption: IGSOption): IGSOption;
  40. export {};