import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit, Renderer2 } from "@angular/core"; import { DateAdapter } from "@angular/material/core"; import { StarkApplicationMetadata, StarkLanguage, StarkLoggingService, StarkSessionService } from "@nationalbankbelgium/stark-core"; import { AbstractStarkUiComponent } from "@nationalbankbelgium/stark-ui/src/internal-common"; import * as i0 from "@angular/core"; export type StarkLanguageSelectorMode = "dropdown" | "toolbar"; /** * Component to select the application's language from a list of available languages passed as parameter. */ export declare class StarkLanguageSelectorComponent extends AbstractStarkUiComponent implements OnInit, OnDestroy { appMetadata: StarkApplicationMetadata; logger: StarkLoggingService; sessionService: StarkSessionService; dateAdapter: DateAdapter; protected cdRef: ChangeDetectorRef; /** * HTML id of the language selector component. */ languageSelectorId: string; /** * In which 'mode' the language selector is displayed: dropdown / toolbar */ mode: StarkLanguageSelectorMode; /** * The currently selected language */ selectedLanguage: string; /** * A reference to the sessionService subscription, needed to unsubscribe upon destroy. */ private sessionServiceSubscription; /** * Class constructor * @param appMetadata - The Metadata of the application the contains the supportedLanguages * @param logger - The `StarkLoggingService` instance of the application. * @param sessionService - The `StarkSessionService` instance of the application. * @param dateAdapter - Needed to change the locale of the DateAdapter * @param renderer - Angular `Renderer2` wrapper for DOM manipulations. * @param elementRef - Reference to the DOM element where this component is attached to. * @param cdRef - Reference to the change detector attached to this component. */ constructor(appMetadata: StarkApplicationMetadata, logger: StarkLoggingService, sessionService: StarkSessionService, dateAdapter: DateAdapter, renderer: Renderer2, elementRef: ElementRef, cdRef: ChangeDetectorRef); /** * Component lifecycle hook */ ngOnInit(): void; /** * Component lifecycle hook */ ngOnDestroy(): void; /** * Change the current language based on the selection made by the user * @param language - The language to change to */ changeLanguage(language: string): void; /** * @ignore */ trackLanguage(_index: number, language: StarkLanguage): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }