UNPKG

@nextcloud/vue

Version:
31 lines (30 loc) 939 B
declare namespace _default { function data(): { hasStatus: boolean; userStatus: { status: null; message: null; icon: null; }; }; namespace methods { /** * Fetches the user-status from the server * * @param {string} userId UserId of the user to fetch the status for * * @return {Promise<void>} */ function fetchUserStatus(userId: string): Promise<void>; /** * Sets the user status * * @param {Record<string, string>} options - Options for setting the user status * @param {string} options.status user's status * @param {string} options.message user's message * @param {string} options.icon user's icon */ function setUserStatus({ status, message, icon }: Record<string, string>): void; } } export default _default;