/** * @fileoverview The notification count of a navigation item (`nv-navbar-item`, * `nv-tabitem`): when it shows a bullet, and what assistive technology reads * for it. */ /** * The default description of a notification count. "Notifications: 1" reads * correctly for every count, which "{count} notifications" does not. */ export declare const DEFAULT_NOTIFICATION_LABEL = "Notifications: {count}"; /** * Whether a notification count is worth a bullet. Only a real count shows one, * so an absent value, zero, a fraction below one and anything that is not a * finite number all hide it. `notification=""` reaches a component as `NaN`, * which a bullet would otherwise render as text. * @param {number | null | undefined} count - The count the consumer passed. * @returns {boolean} True when the count is 1 or more. */ export declare function hasNotificationCount(count: number | null | undefined): count is number; /** * Builds the description of a notification count from a template. Every * `{count}` in the template is replaced, so a translation can put the number * anywhere. * @param {string | null | undefined} template - The consumer's label template. * @param {number} count - The notification count. * @returns {string} The description, or an empty string when the template is * empty, which tells the caller to leave the description out. */ export declare function formatNotificationLabel(template: string | null | undefined, count: number): string;