import * as _angular_core from '@angular/core';
import { OnDestroy, OnInit, ElementRef } from '@angular/core';
import { NavigationExtras } from '@angular/router';
import { Observable } from 'rxjs';

/**
 * @description
 * `eui-breadcrumb` navigation component displaying hierarchical page location with linked path segments.
 * Automatically manages relationships between `eui-breadcrumb` items for proper navigation flow.
 * Detects and coordinates child EuiBreadcrumbItemComponent instances through content projection.
 * Provides semantic navigation structure with automatic previous/next item linking.
 * Typically used for showing user location within site hierarchy and enabling quick navigation to parent pages.
 *
 * @usageNotes
 * #### Basic breadcrumb navigation
 * ```html
 * <eui-breadcrumb>
 *   <eui-breadcrumb-item link="/" iconSvgName="home:outline" ariaLabel="Home"></eui-breadcrumb-item>
 *   <eui-breadcrumb-item link="/products" label="Products"></eui-breadcrumb-item>
 *   <eui-breadcrumb-item link="/products/electronics" label="Electronics"></eui-breadcrumb-item>
 *   <eui-breadcrumb-item label="Laptops"></eui-breadcrumb-item>
 * </eui-breadcrumb>
 * ```
 *
 * #### With navigation extras
 * ```html
 * <eui-breadcrumb>
 *   <eui-breadcrumb-item link="/" iconSvgName="home:outline"></eui-breadcrumb-item>
 *   <eui-breadcrumb-item
 *     link="/services"
 *     label="Services"
 *     [navigationExtras]="{ queryParams: { page: 1 } }">
 *   </eui-breadcrumb-item>
 * </eui-breadcrumb>
 * ```
 *
 * ### Accessibility
 * - Provides semantic navigation structure for screen readers
 * - Each item is keyboard accessible and focusable
 * - ARIA labels on icons provide context for screen reader users
 * - Current page (last item) is typically not linked
 * - Separators between items are handled automatically
 *
 * ### Notes
 * - Must contain eui-breadcrumb-item children for proper functionality
 * - Automatically establishes previous/next relationships between items
 * - Items are rendered in the order they appear in the template
 * - Last item typically represents current page and should not have a link
 * - Supports responsive behavior with automatic item collapsing
 * - Uses Angular Router for navigation when links are provided
 * - External URLs (starting with 'http') open in same window
 */
declare class EuiBreadcrumbComponent {
    private readonly breadcrumbItems;
    constructor();
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<EuiBreadcrumbComponent, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<EuiBreadcrumbComponent, "eui-breadcrumb", never, {}, {}, ["breadcrumbItems"], ["*"], true, never>;
}

type RouterCommands = readonly any[];
type ArrayElement<A> = A extends readonly (infer T)[] ? T : never;
type DeepWriteable<T> = {
    -readonly [P in keyof T]: DeepWriteable<T[P]>;
};
type Cast<X, Y> = X extends Y ? X : Y;
type FromEntries<T> = T extends [infer Key, any][] ? {
    [K in Cast<Key, string>]: Extract<ArrayElement<T>, [K, any]>[1];
} : {
    [key in string]: any;
};
type FromEntriesWithReadOnly<T> = FromEntries<DeepWriteable<T>>;
declare global {
    interface ObjectConstructor {
        fromEntries<T>(obj: T): FromEntriesWithReadOnly<T>;
    }
}
declare class BreadCrumbItem {
    /** A unique ID for each crumb linked to a page */
    id: string;
    /** The label of the crumb */
    label: string;
    /** A URL link. Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
     *   - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
     *   - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
     *   - **null|undefined**: Disables the link by removing the `href`
     */
    get link(): string | RouterCommands;
    set link(link: string | RouterCommands);
    /** Extras for Angular Router */
    navigationExtras?: NavigationExtras;
    private _link?;
}

/**
 * @description
 * Individual breadcrumb item component representing a single segment in the breadcrumb navigation path.
 * Provides clickable navigation links with optional icons and automatic relationship management with adjacent items.
 * Supports Angular Router navigation with both internal routes and external URLs.
 * Automatically generates unique IDs when not provided and manages collapsed state for responsive layouts.
 * Used within eui-breadcrumb container for hierarchical navigation display.
 *
 * @usageNotes
 * ```html
 * <eui-breadcrumb>
 *   <!-- Home with icon only -->
 *   <eui-breadcrumb-item
 *     link="/"
 *     iconSvgName="home:outline"
 *     ariaLabel="Home">
 *   </eui-breadcrumb-item>
 *
 *   <!-- Standard item with label -->
 *   <eui-breadcrumb-item
 *     link="/products"
 *     label="Products">
 *   </eui-breadcrumb-item>
 *
 *   <!-- Item with navigation extras -->
 *   <eui-breadcrumb-item
 *     link="/products/search"
 *     label="Search Results"
 *     [navigationExtras]="{ queryParams: { q: 'laptop' } }">
 *   </eui-breadcrumb-item>
 *
 *   <!-- Current page (no link) -->
 *   <eui-breadcrumb-item label="Product Details"></eui-breadcrumb-item>
 * </eui-breadcrumb>
 * ```
 *
 * ### Accessibility
 * - Each item is keyboard accessible with Enter/Space activation
 * - ariaLabel provides screen reader context for icon-only items
 * - Non-linked items (current page) are not focusable
 * - Label text is announced by screen readers
 * - Icon and label combination provides visual and semantic meaning
 *
 * ### Notes
 * - Must be used within eui-breadcrumb parent component
 * - id is auto-generated if not provided
 * - link supports string URLs, Angular Router commands (array), or null for non-clickable items
 * - External URLs (starting with 'http') open in same window
 * - navigationExtras passes options to Angular Router (queryParams, fragment, etc.)
 * - iconSvgName follows EUI icon naming convention
 * - Last item in breadcrumb typically has no link (represents current page)
 * - Label may be truncated in responsive layouts
 * - Previous/next relationships are managed automatically by parent component
 */
declare class EuiBreadcrumbItemComponent implements OnDestroy, OnInit {
    /** Unique identifier for the breadcrumb item. Auto-generated if not provided. */
    readonly id: _angular_core.InputSignal<string>;
    /** Text label displayed for the breadcrumb item. */
    readonly label: _angular_core.InputSignal<string>;
    /** SVG icon name (e.g., 'home:outline'). */
    readonly iconSvgName: _angular_core.InputSignal<string>;
    /** ARIA label for the icon. */
    readonly ariaLabel: _angular_core.InputSignal<string>;
    /** Navigation target: URL string, Router commands array, or null. */
    readonly link: _angular_core.InputSignal<string | RouterCommands>;
    /** Additional Angular Router navigation options. */
    readonly navigationExtras: _angular_core.InputSignal<NavigationExtras>;
    /** calculated item width */
    readonly width: _angular_core.WritableSignal<number>;
    readonly hasPrevious: _angular_core.WritableSignal<boolean>;
    readonly hasNext: _angular_core.WritableSignal<boolean>;
    /** state of breadcrumb item in case of collapsed */
    readonly collapsed: _angular_core.WritableSignal<boolean>;
    readonly elementRef: ElementRef<any>;
    private _id;
    private previousCrumb;
    private nextCrumb;
    private host;
    private router;
    private logService;
    ngOnInit(): void;
    ngOnDestroy(): void;
    destroy(): void;
    /**
     * Sets the previous breadcrumb item in the navigation chain.
     * Called internally by parent eui-breadcrumb component to establish item relationships.
     */
    setPrevious(breadcrumbItem: EuiBreadcrumbItemComponent): void;
    /**
     * Sets the next breadcrumb item in the navigation chain.
     * Called internally by parent eui-breadcrumb component to establish item relationships.
     */
    setNext(breadcrumbItem: EuiBreadcrumbItemComponent): void;
    /**
     * A callback to navigate to the given link using ng-router.
     */
    onClick(): boolean;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<EuiBreadcrumbItemComponent, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<EuiBreadcrumbItemComponent, "eui-breadcrumb-item", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "iconSvgName": { "alias": "iconSvgName"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "navigationExtras": { "alias": "navigationExtras"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
}

declare class EuiBreadcrumbService {
    /**
     * An observable on which observers can be notified on breadcrumb changes
     */
    breadcrumbs$: Observable<BreadCrumbItem[]>;
    /**
     * A behavior subject to emit breadcrumb whenever that changes
     */
    private breadcrumbsSource$;
    /**
     * An array to hold BreadCrumbItem metadata used to render the BreadCrumbItem
     */
    private breadcrumb;
    constructor();
    /**
     * Adds a new BreadCrumbItem into the breadcrumb
     *
     * @param breadCrumbItem The BreadCrumbItem you want to insert in trail
     * @param [after] The ID of the BreadCrumbItem after given one will be inserted.
     * @param [removeAfter=false] All crumbs after given ID will be removed.
     * @throws Will throw an error if given after ID is not found on current trail.
     */
    addCrumb(breadCrumbItem: BreadCrumbItem, after?: string, removeAfter?: boolean): void;
    /**
     * Remove a BreadCrumbItem based on a given ID
     *
     * @param id Optional: The ID of BreadCrumbItem to be removed
     *           If no id provided then the last item will be popped.
     */
    removeCrumb(id?: string): void;
    /**
     * Update a specific entry in the data structure
     *
     * @throws Will throw an Error if BreadCrumbItem is not part of the breadcrumb
     * @param item The BreadCrumbItem to match and update
     */
    updateCrumb(item: BreadCrumbItem): void;
    /**
     * Returns current breadcrumb
     */
    getBreadcrumb(): BreadCrumbItem[];
    /**
     * Sets the breadcrumb
     */
    setBreadcrumb(breadcrumb: BreadCrumbItem[]): void;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<EuiBreadcrumbService, never>;
    static ɵprov: _angular_core.ɵɵInjectableDeclaration<EuiBreadcrumbService>;
}

declare const EUI_BREADCRUMB: readonly [typeof EuiBreadcrumbComponent, typeof EuiBreadcrumbItemComponent];

export { BreadCrumbItem, EUI_BREADCRUMB, EuiBreadcrumbComponent, EuiBreadcrumbItemComponent, EuiBreadcrumbService };
export type { ArrayElement, FromEntriesWithReadOnly, RouterCommands };
//# sourceMappingURL=eui-components-eui-breadcrumb.d.ts.map
