import { Connection } from 'axis-core'; import { User } from '..'; /** * Class responsible for adding a new user account with password and group membership, modify the * information and remove a user account. */ export declare class UserAccounts { private readonly connection; /** * Initializes a new instance of the class. * @param connection The connection to the device. */ constructor(connection: Connection); /** * Adds a new user. * @param user The user to add. Please note that the password must be specified. * @param init The object containing any custom settings that you want to apply to the request. * @throws {UserAlreadyExistsError} User already exists. */ add(user: User, init?: RequestInit): Promise; /** * Gets all users. * @param init The object containing any custom settings that you want to apply to the request. */ getAll(init?: RequestInit): Promise; /** * Updates a user. * @param user The user to update. Please note that the password must be specified. * @param init The object containing any custom settings that you want to apply to the request. */ update(user: User, init?: RequestInit): Promise; /** * Removes a user. * @param username The name of the user to remove. * @param init The object containing any custom settings that you want to apply to the request. */ remove(username: string, init?: RequestInit): Promise; } //# sourceMappingURL=UserAccounts.d.ts.map