import { UserService } from '../../../../core/backend-api/index.js';
import { tryExecute } from '../../../../core/resources/index.js';
export class UmbUserConfigServerDataSource {
    #host;
    constructor(host) {
        this.#host = host;
    }
    /**
     * Get the user configuration.
     * @memberof UmbUserConfigServerDataSource
     */
    getUserConfig() {
        return tryExecute(this.#host, UserService.getUserConfiguration());
    }
    /**
     * Get the current user configuration.
     * @memberof UmbUserConfigServerDataSource
     */
    getCurrentUserConfig() {
        return tryExecute(this.#host, UserService.getUserCurrentConfiguration());
    }
}
