declare module 'react-native-wechat' { export function registerApp(appId: string): Promise; export function registerAppWithDescription( appId: string, desc: string, ): Promise; export function registerAppWithUniversalLink( appId: string, universalLink: string, ): Promise; export function isWXAppInstalled(): Promise; export function isWXAppSupportApi(): Promise; export function getApiVersion(): Promise; export function openWXApp(): Promise; export interface AuthResponse { errCode?: number; errStr?: string; openId?: string; code?: string; url?: string; lang?: string; country?: string; } export function sendAuthRequest( scope: string | string[], state?: string, ): Promise; export interface ShareMetadata { type: | 'news' | 'text' | 'imageUrl' | 'imageFile' | 'imageResource' | 'video' | 'audio' | 'file'; thumbImage?: string; description?: string; webpageUrl?: string; imageUrl?: string; videoUrl?: string; musicUrl?: string; filePath?: string; fileExtension?: string; } export function shareToTimeline( message: ShareMetadata, ): Promise<{errCode?: number; errStr?: string}>; export function shareToSession( message: ShareMetadata, ): Promise<{errCode?: number; errStr?: string}>; export interface PaymentLoad { partnerId: string; prepayId: string; nonceStr: string; timeStamp: string; package: string; sign: string; } export function pay( payload: PaymentLoad, ): Promise<{errCode?: number; errStr?: string}>; }