import * as i0 from '@angular/core'; import { InjectionToken, OnDestroy, OnChanges, SimpleChanges, OnInit, EventEmitter } from '@angular/core'; import { U as UniqueSelectionDispatcher } from '../unique-selection-dispatcher.d-DSFqf1MM.js'; import { Subject } from 'rxjs'; /** * Injection token that can be used to reference instances of `CdkAccordion`. It serves * as alternative token to the actual `CdkAccordion` class which could cause unnecessary * retention of the class and its directive metadata. */ declare const CDK_ACCORDION: InjectionToken; /** * Directive whose purpose is to manage the expanded state of CdkAccordionItem children. */ declare class CdkAccordion implements OnDestroy, OnChanges { /** Emits when the state of the accordion changes */ readonly _stateChanges: Subject; /** Stream that emits true/false when openAll/closeAll is triggered. */ readonly _openCloseAllActions: Subject; /** A readonly id value to use for unique selection coordination. */ readonly id: string; /** Whether the accordion should allow multiple expanded accordion items simultaneously. */ multi: boolean; /** Opens all enabled accordion items in an accordion where multi is enabled. */ openAll(): void; /** Closes all enabled accordion items. */ closeAll(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; static ngAcceptInputType_multi: unknown; } /** * A basic directive expected to be extended and decorated as a component. Sets up all * events and attributes needed to be managed by a CdkAccordion parent. */ declare class CdkAccordionItem implements OnInit, OnDestroy { accordion: CdkAccordion; private _changeDetectorRef; protected _expansionDispatcher: UniqueSelectionDispatcher; /** Subscription to openAll/closeAll events. */ private _openCloseAllSubscription; /** Event emitted every time the AccordionItem is closed. */ readonly closed: EventEmitter; /** Event emitted every time the AccordionItem is opened. */ readonly opened: EventEmitter; /** Event emitted when the AccordionItem is destroyed. */ readonly destroyed: EventEmitter; /** * Emits whenever the expanded state of the accordion changes. * Primarily used to facilitate two-way binding. * @docs-private */ readonly expandedChange: EventEmitter; /** The unique AccordionItem id. */ readonly id: string; /** Whether the AccordionItem is expanded. */ get expanded(): boolean; set expanded(expanded: boolean); private _expanded; /** Whether the AccordionItem is disabled. */ disabled: boolean; /** Unregister function for _expansionDispatcher. */ private _removeUniqueSelectionListener; constructor(...args: unknown[]); ngOnInit(): void; /** Emits an event for the accordion item being destroyed. */ ngOnDestroy(): void; /** Toggles the expanded state of the accordion item. */ toggle(): void; /** Sets the expanded state of the accordion item to false. */ close(): void; /** Sets the expanded state of the accordion item to true. */ open(): void; private _subscribeToOpenCloseAllActions; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; static ngAcceptInputType_expanded: unknown; static ngAcceptInputType_disabled: unknown; } declare class CdkAccordionModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { CDK_ACCORDION, CdkAccordion, CdkAccordionItem, CdkAccordionModule };