import { nothing, PropertyValueMap } from 'lit'; import { AppTypeGuid } from './types/app.types'; import { ConversationFilterProps, UnreadConversationsController, UnreadConversationsProps } from './controllers/unread-conversations-controller'; import { BadgeAppearanceType, PositionType } from './types/ui.types'; import { WeavyTypeComponent } from './classes/weavy-type-component'; import { ThemeController } from './controllers/theme-controller'; declare global { interface HTMLElementTagNameMap { "wy-messenger-badge": WyMessengerBadge; } } /** * Weavy Messenger badge component that renders a realtime badge for the number of unread conversations. * The badge fits well into a button or similar. * The badge is automatically updated when new messages awaits and when messages have been read. * * When the `unread` count property changes, the component fires a `"wy-unread"` event with the updated count. * You can listen to the event to use the unread count for something else, and you can also turn off the component rendering by setting the `badge` property to `"none"`. * * ** Component layout ** * * The badge displays as an inline badge, matching normal text per default. * It has a filled background with rounded edge. * The badge scales with the current font-size where it's placed, using `0.75em` for the badge `font-size`. * The badge is only displayed when there is an unread count of 1 or higher. * * > When placing the badge in a ` * ``` */ export declare class WyMessengerBadge extends WeavyTypeComponent implements UnreadConversationsProps, ConversationFilterProps { static styles: import('lit').CSSResult[]; /** @internal */ protected theme: ThemeController; /** @internal */ protected unreadConversations: UnreadConversationsController; /** * Disabled link matching/consuming. * @internal */ matchesLink(): boolean; /** * Conversation types included in the unread count. */ appTypes: AppTypeGuid[]; /** * Display size of the badge. * * @type {"count" | "dot" | "none"} * @default "count" */ badge: BadgeAppearanceType; /** * Positioning of the badge. * * @type {"inline" | "top-right" | "bottom-right" | "bottom-left" | "top-left"} * @default "inline" */ badgePosition: PositionType; /** * Current unread conversation count. */ get unread(): number; willUpdate(changedProperties: PropertyValueMap): Promise; render(): import('../node_modules/lit-html/node/lit-html.js').TemplateResult<1> | typeof nothing; } //# sourceMappingURL=wy-messenger-badge.d.ts.map