/** * Wrapper around {@link LoginStatus} to make checking the status easier. * Usage: `if (result.Ok)` instead of `if (status === LoginStatus.Ok)` */ export declare class LoginResult { /** * The value of the {@link LoginStatus}. * Can still be used to get the original status. */ readonly value: LoginStatus; constructor( /** * The value of the {@link LoginStatus}. * Can still be used to get the original status. */ value: LoginStatus); /** * Whether the login was successful. */ get Ok(): boolean; /** * Whether the provided credentials were invalid. */ get InvalidCredentials(): boolean; /** * Whether the user is blocked. */ get UserBlocked(): boolean; } /** * Enum for representing the success status of a login attempt into WebUntis. */ export declare enum LoginStatus { /** * Login was successful */ Ok = 0, /** * Username or password invalid */ InvalidCredentials = 1, /** * User is blocked */ UserBlocked = 2 }