import { LitElement, nothing } from 'lit';
import { ShadowPartsController } from '../../controllers/shadow-parts-controller';
import { PositionType } from '../../types/ui.types';
declare global {
interface HTMLElementTagNameMap {
"wy-badge": WyBadge;
}
}
/**
* Small badge component showing a count, a text label or a generic dot indicator.
*
* The badge kind is decided from the text content of the element:
*
* - Empty, whitespace or `0` renders nothing, so `${unread}` hides itself when there is nothing unread.
* - A whole number renders a count badge, truncated to `limit` (`100` → `99+`).
* - Any other text renders a text badge, truncated with an ellipsis at `--wy-badge-max-width`.
* - The `dot` attribute renders a generic dot indicator. The content remains available to assistive technology.
*
* Hover text is only shown when an explicit `title` is provided.
*
* The `color` attribute picks the color pair. The default is the primary pair, which draws attention, such as an
* unread count. `variant` is the muted secondary-container pair for a count that is information rather than a call to
* action, such as the votes on a poll option.
*
* @csspart wy-badge - Root badge container.
* @csspart wy-badge-variant - Modifier for the muted `variant` color.
* @csspart wy-badge-reveal - Modifier styles for revealing the badge.
* @csspart wy-badge-reveal-delayed - Modifier styles for delaying the reveal.
* @csspart wy-badge-count - Modifier when a count is displayed.
* @csspart wy-badge-text - Modifier when a text label is displayed.
* @csspart wy-badge-dot - Modifier when the dot indicator is displayed.
* @csspart wy-badge-label - Visually hidden label inside a dot badge.
* @csspart wy-badge-positioned - Modifier for using absolute positioning.
* @csspart wy-badge-top-right - Modifier for positioning in top right corner with `wy-badge-positioned`.
* @csspart wy-badge-top-left - Modifier for positioning in top left corner with `wy-badge-positioned`.
* @csspart wy-badge-bottom-right - Modifier for positioning in bottom right corner with `wy-badge-positioned`.
* @csspart wy-badge-bottom-left - Modifier for positioning in bottom left corner with `wy-badge-positioned`.
*
* @example
Count, text and dot badges
*
* ```html
* 3
* Draft
* Draft
* New messages
* 12
* ```
*/
export declare class WyBadge extends LitElement {
#private;
static styles: import('lit').CSSResult[];
protected exportParts: ShadowPartsController;
/** Show a generic dot indicator instead of the content. */
dot: boolean;
/** Positioning of the badge */
position: PositionType;
/** Color pair of the badge: `primary` (default) or the muted `variant`. */
color: "primary" | "variant";
/** Whether to animate showing the badge */
reveal: boolean;
/** Whether to delay showing the badge */
delayed: boolean;
/**
* Limit for count truncation. Set to Infinity for no truncation.
*/
limit: number;
/** Optional hover text. No tooltip is shown unless explicitly provided. */
title: string;
/** Trimmed text content of the element. */
protected content: string;
connectedCallback(): void;
disconnectedCallback(): void;
render(): import('../../../node_modules/lit-html/node/lit-html.js').TemplateResult<1> | typeof nothing;
}
//# sourceMappingURL=wy-badge.d.ts.map