UNPKG

@prass/botpress-native

Version:

A simple and powerful SDK for integrating Botpress Chat API with React Native,

12 lines (11 loc) 582 B
import { CreateUserParams } from "../../types/botpress"; import { CreateUserResponse } from "../../types/botpress.response"; import { Botpress } from "../Botpress"; /** * Internal handler for creating a new user. * @param this - Botpress instance context * @param params - Parameters containing user details (id, name, pictureUrl, profile) * @returns Promise resolving to the created user's details * @throws Error if API call fails */ export declare function handleCreateUser(this: Botpress, { id, name, pictureUrl, profile }: CreateUserParams): Promise<CreateUserResponse>;