license import { InjectionToken } from '@angular/core' ; /** Possible politeness levels. */ export type AriaLivePoliteness = 'off' | 'polite' | 'assertive' ; export const LIVE_ANNOUNCER_ELEMENT_TOKEN = new InjectionToken < HTMLElement | null > ( 'liveAnnouncerElement' , { providedIn : 'root' , factory : LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY , } ) ; docs-private export function LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY ( ) { return null ; } /** Object that can be used to configure the default options for the LiveAnnouncer. */ export interface LiveAnnouncerDefaultOptions { /** Default politeness for the announcements. */ politeness ? : AriaLivePoliteness ; /** Default duration for the announcement messages. */ duration ? : number ; } /** Injection token that can be used to configure the default options for the LiveAnnouncer. */ export const LIVE_ANNOUNCER_DEFAULT_OPTIONS = new InjectionToken < LiveAnnouncerDefaultOptions > ( 'LIVE_ANNOUNCER_DEFAULT_OPTIONS' ) ;