/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { AnimationEvent } from '@angular/animations'; import { CdkAccordionItem } from '@angular/cdk/accordion'; import { UniqueSelectionDispatcher } from '@angular/cdk/collections'; import { TemplatePortal } from '@angular/cdk/portal'; import { AfterContentInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, SimpleChanges, ViewContainerRef } from '@angular/core'; import { Subject } from 'rxjs'; import { MatExpansionPanelContent } from './expansion-panel-content'; import { MatAccordionBase } from './accordion-base'; export declare const _CdkAccordionItem: typeof CdkAccordionItem; /** MatExpansionPanel's states. */ export declare type MatExpansionPanelState = 'expanded' | 'collapsed'; /** * `` * * This component can be used as a single element to show expandable content, or as one of * multiple children of an element with the MatAccordion directive attached. */ export declare class MatExpansionPanel extends CdkAccordionItem implements AfterContentInit, OnChanges, OnDestroy { private _viewContainerRef; private _document; /** Whether the toggle indicator should be hidden. */ hideToggle: boolean; private _hideToggle; /** Stream that emits for changes in `@Input` properties. */ readonly _inputChanges: Subject; /** Optionally defined accordion the expansion panel belongs to. */ accordion: MatAccordionBase; /** Content that will be rendered lazily. */ _lazyContent: MatExpansionPanelContent; /** Element containing the panel's user-provided content. */ _body: ElementRef; /** Portal holding the user's content. */ _portal: TemplatePortal; /** ID for the associated header element. Used for a11y labelling. */ _headerId: string; constructor(accordion: MatAccordionBase, _changeDetectorRef: ChangeDetectorRef, _uniqueSelectionDispatcher: UniqueSelectionDispatcher, _viewContainerRef: ViewContainerRef, _document?: any); /** Determines whether the expansion panel should have spacing between it and its siblings. */ _hasSpacing(): boolean; /** Gets the expanded state string. */ _getExpandedState(): MatExpansionPanelState; ngAfterContentInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; _bodyAnimation(event: AnimationEvent): void; /** Checks whether the expansion panel's content contains the currently-focused element. */ _containsFocus(): boolean; } export declare class MatExpansionPanelActionRow { }