import { Link } from '@siemens/element-ng/link'; import * as _siemens_element_translate_ng_translate from '@siemens/element-translate-ng/translate'; import * as i0 from '@angular/core'; import { OnChanges, OnDestroy } from '@angular/core'; /** * Copyright (c) Siemens 2016 - 2026 * SPDX-License-Identifier: MIT */ /** * Item that should be displayed in a breadcrumb. * As input, we expect an optional title and link, * which can be an URL or array of URL segments. */ interface BreadcrumbItem extends Link { title: string; } /** * Extends {@link EnumeratedBreadcrumbItem} and adds * the level, if it is shortened, a shortened title and * if it is the last item */ interface EnumeratedBreadcrumbItem extends BreadcrumbItem { /** * The current level relative to the root, the root is 0 */ level: number; /** * Whether the title is displayed in full length or it is shortened. */ shortened?: boolean; /** * The shortened title, if the title is not shortened, it is the same as the title. */ shortenedTitle?: string; /** * Whether it is the last breadcrumb item and should be styled differently. */ lastItem?: boolean; } declare class SiBreadcrumbComponent implements OnChanges, OnDestroy { /** Array of breadcrumb items. */ readonly items: i0.InputSignal; /** * Shows the "root" route as the provided title string instead of an icon. * * @defaultValue false */ readonly showRootAsText: i0.InputSignalWithTransform; /** * Aria label for the main breadcrumb navigation. Needed for a11y. * * @defaultValue * ``` * t(() => $localize`:@@SI_BREADCRUMB:Breadcrumb navigation`) * ``` */ readonly ariaLabel: i0.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>; private translationSubscription?; private itemsProcessed; private numberOfItems; protected itemsShown: EnumeratedBreadcrumbItem[]; protected itemsHidden: EnumeratedBreadcrumbItem[]; protected breadcrumbShortened: boolean; protected ellipsesLevel: number; protected readonly hiddenItemsLabel: _siemens_element_translate_ng_translate.TranslatableString; protected readonly icons: Record<"elementRight2" | "elementBreadcrumbRoot", string>; private readonly breadcrumbElement; private readonly breadcrumbElements; private readonly breadcrumbMenu; private changeDetector; private translate; ngOnChanges(): void; ngOnDestroy(): void; private processItems; protected resetBreadcrumb(): void; private calculateBreadcrumb; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SiBreadcrumbModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { SiBreadcrumbComponent, SiBreadcrumbModule }; export type { BreadcrumbItem, EnumeratedBreadcrumbItem };