import * as i0 from "@angular/core"; import { OnChanges, OnDestroy, SimpleChanges } from "@angular/core"; export declare class CustomDeferredLiveRegionAnnouncement implements OnChanges, OnDestroy { private static readonly DEFAULT_ANNOUNCEMENT_DELAY_MS; private readonly injector; private timeoutId; private browserRendered; private _announcementDelayMs; protected readonly renderedMessage: import("@angular/core").WritableSignal; message: string; role: 'status' | 'alert'; /** * Sets the announcement delay in milliseconds. * * @throws Error when the value is negative or not finite. */ set announcementDelayMs(value: number); /** * Schedules the initial announcement after the first browser render so the * live region is present and empty before its content changes. */ private scheduleInitialAnnouncement; /** * Clears any pending announcement and the current live-region content before * scheduling the latest message using the configured delay. * * Stores the timer in `timeoutId` so it can be cancelled if the message or * delay changes before the announcement occurs. */ private scheduleAnnouncement; /** * Cancels the currently pending announcement, if any, and clears the stored * timer reference. */ private clearPendingAnnouncement; /** * Returns the configured announcement delay in milliseconds. */ get announcementDelayMs(): number; /** * Responds to announcement-related input changes. * * Message changes schedule an announcement, using a browser-only post-render * callback before the component's first browser render. Delay changes only * reschedule an announcement when one is already pending. */ ngOnChanges(changes: SimpleChanges): void; /** * Cancels any pending announcement when the component is destroyed. */ ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }