import { OnInit } from "@angular/core"; import { RawParams } from "@uirouter/core"; import { StarkLoggingService, StarkRoutingService, StarkSessionService, StarkUser, StarkUserService } from "@nationalbankbelgium/stark-core"; import * as i0 from "@angular/core"; /** * Login Page smart component. * **This page is to be used only in the development environment.** * * It shows a list of user profiles (provided by mock data or a back-end) that the user can choose and use it to impersonate himself as someone else. * This makes it easy to run the application with different roles. */ export declare class StarkLoginPageComponent implements OnInit { logger: StarkLoggingService; userService: StarkUserService; sessionService: StarkSessionService; routingService: StarkRoutingService; /** * Target page to navigate to after the user profile is loaded and automatically logged in. */ targetState?: string; /** * Params to pass to the target page (if any). */ targetStateParams?: RawParams; /** * User profiles to be displayed in the list where the user can choose from. */ users: StarkUser[]; /** * Class constructor * @param logger - The `StarkLoggingService` instance of the application. * @param userService - The `StarkUserService` instance of the application. * @param sessionService - The `StarkSessionService` instance of the application. * @param routingService - The `StarkRoutingService` instance of the application. */ constructor(logger: StarkLoggingService, userService: StarkUserService, sessionService: StarkSessionService, routingService: StarkRoutingService); /** * Component lifecycle hook */ ngOnInit(): void; /** * Authenticate the passed user as the current user. * @param user - The user to be authenticated */ authenticateUser(user: StarkUser): void; /** * Check if users are defined in the component */ userProfilesAvailable(): boolean; /** * Returns a string with the roles of the user. * @param user - The user who has the roles */ getUserRoles(user: StarkUser): string; /** * @ignore */ trackItemFn(_index: number, item: any): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }