import { ThemeStatusVariantType } from "../../type/variant"; import { StrategyType } from './meta/types'; /** * @category feedback */ export declare class MdsNotification { private caller; private describedCaller?; private describing; private pulsing; private host; private cleanupAutoUpdate?; private autoUpdateTimer?; /** * Specifies the selector of the target element, this attribute is used with `querySelector` method. * @example '#profile-button' */ readonly target: string; /** * Specifies the number of notifications to display. At 0 the badge shows no number, as an * empty dot: it is not hidden, `dismissed` takes it off its target */ value: number; /** * Specifies if the notification is dismissed */ dismissed: boolean; /** * Specifies the position strategy of the notification */ strategy: StrategyType; /** * Specifies the maximum number that can be seen, assuming that the number is for example 9 and that this is exceeded with 15, the component shows +9 */ max?: number; /** * Specifies the colour of the dot and of the badge, a status: `error`, the danger colour, by * default; `info` for something new that is not wrong, `success` and `warning` */ readonly variant: ThemeStatusVariantType; /** * Specifies if the dot pulses when `value` grows: a ring that grows from it and fades, three * beats and then still. Never on the first render, nor with a reduced animation */ readonly pulse: boolean; private placement?; private updatePosition; private clean; componentDidRender(): void; /** * The count reaches a screen reader through the element it sits on, as a description of it * ("Messages, button, 3"): the badge itself is then hidden, or it would be read again wherever * it sits in the page. A dismissed badge, a plain dot and a caller in another tree (an IDREF * does not cross a shadow boundary) describe nothing. Ids already in the caller's * `aria-describedby`, a tooltip's among them, stay. Without a target the count is plain text, * read with whatever contains it: the name of the mds-button it sits in. */ private describeCaller; componentDidLoad(): void; /** * floating-ui keeps the badge on its target through listeners on the scroll parents and an * observer of their size: they are started once, after a short wait for the target's layout, * and stopped with the function autoUpdate returns. That function used to be replaced by an * empty one instead of being called, so every badge ever removed kept its listeners. */ private startAutoUpdate; private stopAutoUpdate; connectedCallback(): void; disconnectedCallback(): void; /** * The pulse calls attention to a count that grows, the decision of 2026-10-31 for the new * items of a list (#1216): a smaller count follows what the person did (read or showed the * items) and calls for nothing. The first render is no change, so it does not pulse. A growth * while the dot pulses does not start it over: the pulse already says that something is new, * and each one ends after its three beats, under the 5 seconds of WCAG 2.2.2 however often * the count grows. A reduced animation, chosen in Magma or in the system, never starts it; the * pref-animation sheet ends one that is playing when the preference changes. */ valueHandler(newValue: number, oldValue: number): void; private endPulse; strategyHandler(newValue: StrategyType): void; render(): any; }