import { ThemeController } from './controllers/theme-controller'; import { WeavyTypeComponent } from './classes/weavy-type-component'; import { CreateConversationController } from './controllers/create-conversation-controller'; import { MemberIdType } from './types/members.types'; import { OverlayAppearanceType } from './types/ui.types'; declare global { interface HTMLElementTagNameMap { "wy-messenger-new": WyMessengerNew; } } /** * @import { WyActionEventType } from "./types/action.events" */ /** * Weavy messenger component to render a create conversation button with dialogs. * * When a conversation is created, the component fires a `"wy-action"` event with the action type `"select"` and details about the conversation. * * ** Component layout ** * * The button is displayed as a clickable icon that acts as a button. The default size of the button is the icon size `1.5rem`/`24px` together with the set `--wy-padding` (which defaults to `0.5rem`/`8px`) on every side of the icon, which makes a total of `2.5rem`/`40px` per default. * * The select member dialog renders in a modal overlay centered in the [top layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer). That means that the dialog does not occupy any visual layout space where it's placed in the DOM, it only renders in the top layer. * * You can add additional styling using _CSS Custom Properties_ and _CSS Shadow Parts_ and further customization using _slots_. * * **Used sub components:** * * - [``](./components/wy-conversation-new.ts) * * @tagname wy-messenger-new * @fires {WyActionEventType} wy-action - Emitted when a conversation app is created and should be selected. * @example Inline new conversation button in a text * Display an icon button that opens a dialog to select users for a new conversation. * * ```html *
Create conversation
* ``` */ export declare class WyMessengerNew extends WeavyTypeComponent { static styles: import('lit').CSSResult[]; /** @internal */ protected theme: ThemeController; /** * Disabled link matching/consuming. * @internal */ matchesLink(): boolean; /** @internal */ protected createConversationController: CreateConversationController; /** @internal */ private conversationNewRef; /** * Overlay appearance used for the create conversation dialog. * * @type {"modal" | "sheet" | "drawer" | "full" | "none"} * @default "modal" */ overlay: OverlayAppearanceType; /** * Creates a new conversation. * * @param members - Optional array of member ids or member uids. */ createConversation(members?: MemberIdType[]): Promise; /** * Opens the select-member dialog. * * @returns Promise resolving to the selected member ids or uids. */ selectMembers(): Promise; render(): import('../node_modules/lit-html/node/lit-html.js').TemplateResult<1>; } //# sourceMappingURL=wy-messenger-new.d.ts.map