import { ErrorUnion, OkUnion } from '../outputs'; /** * Changes the username of the current user. If something changes, updateUser will be * sent * @param {Object} params * @param {string} [params.username] - The new value of the username. Use an empty * string to remove the username * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type SetUsernameMethod = (params: SetUsernameParams, state?: Record) => Promise; export interface SetUsernameParams { /** The new value of the username. Use an empty string to remove the username */ username?: string; }