import type { UmbCurrentUserModel } from './types.js'; import { UmbContextBase } from '../../../libs/class-api/index.js'; import type { UmbControllerHost } from '../../../libs/controller-api/index.js'; import type { UmbReferenceByUnique } from '../../core/models/index.js'; export declare class UmbCurrentUserContext extends UmbContextBase { #private; readonly currentUser: import("rxjs").Observable; readonly allowedSections: import("rxjs").Observable; readonly avatarUrls: import("rxjs").Observable; readonly documentStartNodeUniques: import("rxjs").Observable; readonly email: import("rxjs").Observable; readonly fallbackPermissions: import("rxjs").Observable; readonly hasAccessToAllLanguages: import("rxjs").Observable; readonly hasAccessToSensitiveData: import("rxjs").Observable; readonly hasDocumentRootAccess: import("rxjs").Observable; readonly hasMediaRootAccess: import("rxjs").Observable; readonly isAdmin: import("rxjs").Observable; readonly languageIsoCode: import("rxjs").Observable; readonly languages: import("rxjs").Observable; readonly mediaStartNodeUniques: import("rxjs").Observable; readonly name: import("rxjs").Observable; readonly permissions: import("rxjs").Observable; readonly unique: import("rxjs").Observable; readonly userName: import("rxjs").Observable; constructor(host: UmbControllerHost); /** * Loads the current user */ load(): Promise; /** * Checks if a user is the current user. * @param userUnique The user id to check * @returns True if the user is the current user, otherwise false */ isUserCurrentUser(userUnique: string): Promise; /** * Checks if the current user is an admin. * @returns True if the current user is an admin, otherwise false */ isCurrentUserAdmin(): Promise; /** * Get the allowed sections for the current user * @returns {Array | undefined} The allowed sections for the current user */ getAllowedSection(): Array | undefined; /** * Get the avatar urls for the current user * @returns {Array | undefined} The avatar urls for the current user */ getAvatarUrls(): Array | undefined; /** * Get the document start node uniques for the current user * @returns {Array | undefined} The document start node uniques for the current user */ getDocumentStartNodeUniques(): Array | undefined; /** * Get the email for the current user * @returns {string | undefined} The email for the current user */ getEmail(): string | undefined; /** * Get the fallback permissions for the current user * @returns {Array | undefined} The fallback permissions for the current user */ getFallbackPermissions(): Array | undefined; /** * Get if the current user has access to all languages * @returns {boolean | undefined} True if the current user has access to all languages, otherwise false */ getHasAccessToAllLanguages(): boolean | undefined; /** * Get if the current user has access to sensitive data * @returns {boolean | undefined} True if the current user has access to sensitive data, otherwise false */ getHasAccessToSensitiveData(): boolean | undefined; /** * Get if the current user has document root access * @returns {boolean | undefined} True if the current user has document root access, otherwise false */ getHasDocumentRootAccess(): boolean | undefined; /** * Get if the current user has media root access * @returns {boolean | undefined} True if the current user has media root access, otherwise false */ getHasMediaRootAccess(): boolean | undefined; /** * Get if the current user is an admin * @returns {boolean | undefined} True if the current user is an admin, otherwise false */ getIsAdmin(): boolean | undefined; /** * Get the language iso code for the current user * @returns {string | undefined} The language iso code for the current user */ getLanguageIsoCode(): string | undefined; /** * Get the languages for the current user * @returns {Array | undefined} The languages for the current user */ getLanguages(): Array | undefined; /** * Get the media start node uniques for the current user * @returns {Array | undefined} The media start node uniques for the current user */ getMediaStartNodeUniques(): Array | undefined; /** * Get the name for the current user * @returns {string | undefined} The name for the current user */ getName(): string | undefined; /** * Get the permissions for the current user * @returns {unknown[] | undefined} The permissions for the current user */ getPermissions(): unknown[] | undefined; /** * Get the unique for the current user * @returns {string | undefined} The unique for the current user */ getUnique(): string | undefined; /** * Get the user name for the current user * @returns {string | undefined} The user name for the current user */ getUserName(): string | undefined; } export default UmbCurrentUserContext;