import { PropertyValueMap } from 'lit'; import { PersistStateController } from './controllers/persist-state-controller'; import { ThemeController } from './controllers/theme-controller'; import { AppTypeGuid } from './types/app.types'; import { ComponentFeatures } from './contexts/features-context'; import { ConversationFilterProps, UnreadConversationsController, UnreadConversationsProps } from './controllers/unread-conversations-controller'; import { WeavyTypeComponent } from './classes/weavy-type-component'; declare global { interface HTMLElementTagNameMap { "wy-conversations": WyConversations; } } /** * @import { WyUnreadEventType } from "./types/ui.events" */ /** * Weavy conversations component to list and select chats, one-to-one conversations or group chats. * * **Component Layout** * * The component is [block-level](https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content) with pre-defined CSS styling to adapt to flex- and grid-layouts as well as traditional flow-layouts. * It's usually recommended to use a proper flex-layout for the container you are placing the component in for a smooth layout integration. * * The height grows with the content per default. Content is automatically loaded during scrolling when the last content becomes visible (aka infinite scrolling). * If placed in a flex- or grid-layout or if an explicit height is set, the component becomes scrollable. * * The content within the components is per default aligned to the edges of it's own _box_ and designed to not be placed next to a edge or border. * It's recommended to adjust the layout with your default padding. Setting the `--wy-padding-outer` to your default padding will allow the component to still fill the are where it's placed, * but with proper padding within the scrollable area of the component. * If you want to make the component go all the way to the edges without padding or any outermost roundness instead, * set `--wy-padding-outer: 0;` and `--wy-border-radius-outer: 0;` to make the component fit nicely with the edge. * * You can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_. * * **Used sub components:** * * - [``](./components/wy-conversation-list.ts) * * @tagname wy-conversations * @fires {WyActionEventType} wy-action - Emitted when a conversation is selected or an action is performed on a conversation. * @fires {WyUnreadEventType} wy-unread - Fired when the number of unread notifications change. * * @example Standard conversation list * A conversation list placed in a container using a flex layout. * * ```html *
* *
* ``` */ export declare class WyConversations extends WeavyTypeComponent implements UnreadConversationsProps, ConversationFilterProps { static styles: import('lit').CSSResult[]; /** @internal */ componentFeatures: ComponentFeatures; /** @internal */ protected theme: ThemeController; /** @internal */ protected unreadConversations: UnreadConversationsController; /** App types included in the conversation list. The attribute accepts whitespace-separated type names or guids. */ appTypes: AppTypeGuid[]; /** Current unread conversation count. */ get unread(): number; /** Active conversation id. */ conversationId?: number | null; /** @internal */ protected persistState: PersistStateController; protected willUpdate(changedProperties: PropertyValueMap): Promise; render(): import('../node_modules/lit-html/node/lit-html.js').TemplateResult<1>; } //# sourceMappingURL=wy-conversations.d.ts.map