import { GlideMemoryRecord } from "./GlideMemoryRecord"; import { GlideRecord } from "./GlideRecord"; import { GlideVector } from "./GlideVector"; export declare class GlideUser { // Static methods static getUser(user: string): GlideUser; static getUserByID(id: string): GlideUser; static getUserByEmail(email: string): GlideUser; static getSysIdByEmail(email: string): string; static authenticateMutualAuthToken(): string; static authenticateOAuthAccessToken(token: string): string; static authenticateUser(user: string, password: string): string; static authenticate(user: string, password: string): boolean; static getCurrentUser(): GlideUser; static getSysTimeZone(): string; static isLockedOut(userName: string): boolean; static isWebSvcAccessOnly(userName: string): boolean; static resolveSysId(value: string): string; static getSysId(name: string, value: string): string; static resolveNameFromLoginName(name: string): string; static resolveNameFromLoginName(name: any): string; static resolveNameFromSysID(sysID: string): string; static getMyGroups(user: string): Array; static getMyExplicitGroups(u: string): Array; static getAllGroups(): Array; // Instance methods isDefault(): boolean; getEmail(): string; getFullName(): string; getManagerID(): string; getDepartmentID(): string; getManagerName(): string; exists(): boolean; getCompanyRecord(): GlideRecord; getDomainID(): string; getDomainDisplayValue(): string; getTZ(): string; getTimeZoneLabel(): string; getTimeZoneLabelLang(language: string): string; getDateTimeFormat(): string; getDateFormat(): string; getDateFormatEx(style: string): string; setDateFormat(df: string): void; getTimeFormat(): string; setTimeFormat(tf: string): void; getLanguage(): string; getRecord(): GlideMemoryRecord; isXML(): boolean; isTimeLimitedCredential(): boolean; isACRUser(): boolean; isOpenIDConnect(): boolean; getCountry(): string; getTitle(): string; getFirstName(): string; getLastName(): string; getMyExplicitGroups(): Array; isExplicitMemberOf(group: any): boolean; getMyGroups(): Array; getMyGroupsExcludeAdmin(): Array; getManagedGroups(): Array; getLocation(): string; getMobileNumber(): string; getUserType(): string; setPreferencesLoaded(b: boolean): void; getInitials(): string; getAvatar(): string; getBusinessNumber(): string; hasAssignedRole(roleName: string): boolean; hasRoles(): boolean; getUserRoles(): GlideVector; getRoles(): GlideVector; getAllRoles(): string[]; isReadOnlyUser(): boolean; savePreferences(): void; setPreference(name: string, value: string): void; setDomainID(id: string): void; /** * Gets the Company ID of the current user */ getCompanyID(): string; /** * Gets the display name of the current user */ getDisplayName(): string; /** * Gets the sys_id of current user */ getID(): string; /** * Gets the user id, or login name, of the current user */ getName(): string; /** * Gets the specified user preference value for the current user */ getPreference(name: string): string; /** * Determines if the current user has the specified role */ hasRole(o: any): boolean; /** * Determines if the current user is a member of the specified group */ isMemberOf(group: any): boolean; /** * * Saves a user preference value to the database */ savePreference(name: string, value: string): void; constructor(); }