import { FocusKeyManager, FocusMonitor } from '@angular/cdk/a11y'; import { Directionality } from '@angular/cdk/bidi'; import { UniqueSelectionDispatcher } from '@angular/cdk/collections'; import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core'; import { Subject } from 'rxjs'; import { KbqAccordionItem } from './accordion-item'; import * as i0 from "@angular/core"; export declare enum KbqAccordionVariant { fill = "fill", hug = "hug", hugSpaceBetween = "hugSpaceBetween" } export type KbqAccordionType = 'single' | 'multiple'; export type KbqAccordionOrientation = 'horizontal' | 'vertical'; export declare class KbqAccordion implements OnDestroy, AfterViewInit, AfterContentInit { private readonly isBrowser; private readonly localStorage; /** @docs-private */ protected readonly focusMonitor: FocusMonitor; /** @docs-private */ protected readonly elementRef: ElementRef; /** @docs-private */ protected readonly changeDetectorRef: ChangeDetectorRef; /** @docs-private */ protected readonly selectionDispatcher: UniqueSelectionDispatcher; /** @docs-private */ protected readonly dir: Directionality | null; /** @docs-private */ protected keyManager: FocusKeyManager; /** @docs-private */ readonly openCloseAllActions: Subject; /** @docs-private */ items: QueryList; /** Specifies whether the accordion saves its states. Default is false */ useStateSaving: boolean; variant: KbqAccordionVariant | string; /** Whether the Accordion is disabled. */ disabled: boolean; /** The orientation of the accordion. */ orientation: KbqAccordionOrientation; /** * The value of the item to expand when initially rendered and type is "single". Use when you do not need to control the state of the items. */ get defaultValue(): string[] | string; set defaultValue(value: string[] | string); /** Determines whether one or multiple items can be opened at the same time. */ type: KbqAccordionType; collapsible: boolean; /** The controlled value of the item to expand */ get value(): string[] | string; set value(value: string[] | string); readonly onValueChange: EventEmitter; get id(): string; get isMultiple(): boolean; get hasSavedState(): boolean; private _value?; private _defaultValue; private onValueChangeSubscription; private _id; private state; constructor(); ngAfterContentInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; /** @docs-private */ keydownHandler(event: KeyboardEvent): void; /** Opens all enabled accordion items in an accordion where multi is enabled. */ openAll(): void; /** Closes all enabled accordion items. */ closeAll(): void; /** @docs-private */ setActiveItem(item: KbqAccordionItem): void; /** @docs-private */ saveItemState(item: KbqAccordionItem, force?: boolean): void; private getSavedState; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_disabled: unknown; }