/* * @Author: Bin * @Date: 2021-07-29 * @FilePath: /react-native-qq-lib/index.d.ts */ import React from 'react'; export type QQLibShareType = 'news' | 'text' | 'image'; export interface QQLibSharePropTypes { type: QQLibShareType, } export interface QQLibShareNewsPropTypes extends QQLibSharePropTypes { title: string, description: string, webpageUrl: string, imageUrl: string, } export interface QQLibShareTextPropTypes extends QQLibSharePropTypes { text: string, } export interface QQLibShareImagePropTypes extends QQLibSharePropTypes { imageUrl: string, imageLocalUrl: string, } declare const login: (scopes?: string) => Promise; declare const shareToQQ: (data: QQLibShareNewsPropTypes | QQLibShareTextPropTypes | QQLibShareImagePropTypes) => Promise; declare const shareToQzone: (data: QQLibShareNewsPropTypes | QQLibShareTextPropTypes | QQLibShareImagePropTypes) => Promise; declare const logout: () => {}; export { login, shareToQQ, shareToQzone, logout, };