import { MJAuthBase, StandardUserInfo } from '@memberjunction/ng-auth-services'; import { ThemeService } from '@memberjunction/ng-shared'; import { StartupValidationService } from '@memberjunction/ng-explorer-core'; import { WorkspaceEnvironment, WorkspaceInitResult, WorkspaceInitError } from '../models/workspace-types'; import * as i0 from "@angular/core"; export declare class WorkspaceInitializerService { private authBase; private startupValidationService; private themeService; private _sessionExpiredHandled; constructor(authBase: MJAuthBase, startupValidationService: StartupValidationService, themeService: ThemeService); /** * Initialize workspace with authenticated user * Replaces all the logic from AppComponent.handleLogin() */ initializeWorkspace(token: string, userInfo: StandardUserInfo, environment: WorkspaceEnvironment): Promise; /** * Classify errors into actionable types * Replaces AppComponent error handling logic */ classifyError(err: any): WorkspaceInitError; /** * Org theming bootstrap: after metadata + ThemeService are ready, apply * the brand theme the user last chose (a starred theme they swapped to), falling back * to the org default. Derives the overlay via the theme engine and applies it always-on * (under the user's light/dark choice). Non-fatal — a missing Theme entity (older DBs) * or no theme simply leaves the stock MJ theme in place. */ private applyDefaultBrandTheme; /** * Helper function to safely check if an error is related to missing user roles * Extracted from AppComponent.isNoUserRolesError() */ private isNoUserRolesError; /** * Called when token refresh fails irrecoverably mid-session. * Shows a brief notification overlay, then forces logout to clear caches and redirect to login. */ private handleSessionExpired; /** * Creates a simple DOM overlay notifying the user their session has expired. * Uses inline styles so it works regardless of Angular component encapsulation. */ private showSessionExpiredOverlay; /** * Handle authentication retry with backoff * Replaces AppComponent.handleAuthRetry() logic */ handleAuthRetry(error: WorkspaceInitError, currentPath: string): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } //# sourceMappingURL=workspace-initializer.service.d.ts.map