UNPKG

softchatjs-react-native

Version:

React native UI SDK for softchatjs-core. Create a free account at: https://www.softchatjs.com

20 lines (17 loc) 866 B
import { Prettify, UploadContent } from '../types.mjs'; import 'react'; import 'react-native'; import 'softchatjs-core'; type APIResponse<R> = { success: boolean; data: R; message: string; }; declare function CREATE_SESSION<Response>({ userId }: { userId: string; }): Promise<APIResponse<Response>>; declare function GET_CONVERSATIONS<Response>(token: string | undefined, userId: string): Promise<APIResponse<Response>>; declare function GET_MESSAGES<Response>(token: string | undefined, conversationId: string): Promise<APIResponse<Response>>; declare function GET_EMOJIS<Response>(token: string | undefined): Promise<APIResponse<Response>>; declare function UPLOAD_MEDIA<Response>(token: string, data: Prettify<UploadContent>): Promise<APIResponse<Response>>; export { CREATE_SESSION, GET_CONVERSATIONS, GET_EMOJIS, GET_MESSAGES, UPLOAD_MEDIA };