license import { InjectionToken } from '@angular/core' ; import { CdkAccordion } from '@angular/cdk/accordion' ; /** MatAccordion's display modes. */ export type MatAccordionDisplayMode = 'default' | 'flat' ; docs-private export interface MatAccordionBase extends CdkAccordion { /** Whether the expansion indicator should be hidden. */ hideToggle : boolean ; /** Display mode used for all expansion panels in the accordion. */ displayMode : MatAccordionDisplayMode ; /** Handles keyboard events coming in from the panel headers. */ _handleHeaderKeydown : ( event : KeyboardEvent ) => void ; /** Handles focus events on the panel headers. */ _handleHeaderFocus : ( header : any ) => void ; } /**
 * Token used to provide a `MatAccordion` to `MatExpansionPanel`.
 * Used primarily to avoid circular imports between `MatAccordion` and `MatExpansionPanel`.
 */ export const MAT_ACCORDION = new InjectionToken < MatAccordionBase > ( 'MAT_ACCORDION' ) ;