UNPKG

@prass/botpress-native

Version:

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

12 lines (11 loc) 611 B
import { Botpress } from "../Botpress"; import { UserResponse } from "../../types/botpress.response"; import { UpdateUserParams } from "../../types/botpress"; /** * Internal handler for updating the current user's details. * @param this - Botpress instance context * @param params - Parameters containing user details to update (name, pictureUrl, profile) * @returns Promise resolving to the updated user's details * @throws Error if user key is missing or API call fails */ export declare function handleUpdateUser(this: Botpress, { name, pictureUrl, profile }: UpdateUserParams): Promise<UserResponse>;