import { CssLength } from '@breadstone/mosaik-themes'; import { ISlottable } from '../../../Behaviors/Slottable'; import { ChatBegin } from '../../../Types/ChatBegin'; import { CustomElement } from '../../Abstracts/CustomElement'; import { ChatInputElement } from './ChatInputElement'; import type { IChatElementProps } from './IChatElementProps'; import { ChatElementIntl } from './Intl/ChatElementIntl'; declare const ChatElement_base: (abstract new (...args: Array) => import("../../../Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Dimensionable").IDimensionableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Appearanceable").IAppearanceableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Variantable").IVariantableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Slottable").ISlottableProps & ISlottable) & typeof CustomElement & import("../../../Behaviors/Themeable").IThemeableCtor; /** * Chat - A user interface component for real-time messaging and communication. * * @description * The Chat component provides a platform for users to engage in real-time text-based conversations. * It typically includes features such as sending and receiving messages, user avatars, timestamps, and more. * Chat components are commonly used in messaging applications, social media platforms, and customer support systems. * * @element mosaik-chat * @category Media * * @slot empty - Slot for empty state content. * @slot header - Slot for chat header content. * @slot input - Slot for chat input element. * @slot message - Slot for chat message elements. * * @csspart empty - The empty part. * @csspart footer - The footer part. * @csspart messages - The messages part. * @csspart messagesWrapper - The messagesWrapper part. * * @cssprop {String} --chat-background-color - The background color CSS custom property. * @cssprop {String} --chat-border-color - The border color CSS custom property. * @cssprop {String} --chat-border-radius - The border radius CSS custom property. * @cssprop {String} --chat-border-style - The border style CSS custom property. * @cssprop {String} --chat-border-width - The border width CSS custom property. * @cssprop {String} --chat-font-family - The font family CSS custom property. * @cssprop {String} --chat-font-letter-spacing - The font letter spacing CSS custom property. * @cssprop {String} --chat-font-line-height - The font line height CSS custom property. * @cssprop {String} --chat-font-size - The font size CSS custom property. * @cssprop {String} --chat-font-text-decoration - The font text decoration CSS custom property. * @cssprop {String} --chat-font-text-transform - The font text transform CSS custom property. * @cssprop {String} --chat-font-weight - The font weight CSS custom property. * @cssprop {String} --chat-foreground-color - The foreground color CSS custom property. * @cssprop {String} --chat-gap - The gap CSS custom property. * @cssprop {String} --chat-line-thickness - The line thickness CSS custom property. * @cssprop {String} --chat-padding-bottom - The padding bottom CSS custom property. * @cssprop {String} --chat-padding-left - The padding left CSS custom property. * @cssprop {String} --chat-padding-right - The padding right CSS custom property. * @cssprop {String} --chat-padding-top - The padding top CSS custom property. * @cssprop {String} --chat-shadow - The shadow CSS custom property. * @cssprop {String} --chat-shadow-blur - The shadow blur CSS custom property. * @cssprop {String} --chat-shadow-color - The shadow color CSS custom property. * @cssprop {String} --chat-shadow-offset-x - The shadow offset x CSS custom property. * @cssprop {String} --chat-shadow-offset-y - The shadow offset y CSS custom property. * @cssprop {String} --chat-shadow-spread - The shadow spread CSS custom property. * @cssprop {String} --chat-transition-duration - The transition duration CSS custom property. * @cssprop {String} --chat-transition-mode - The transition mode CSS custom property. * @cssprop {String} --chat-transition-property - The transition property CSS custom property. * @cssprop {String} --chat-translate - The translate CSS custom property. * * @dependency mosaik-back-top - The Back Top element. * * @example * Basic chat: * ```html * * ``` * * @example * Chat with scroll-to-end enabled and a variant: * ```html * * ``` * * @public */ export declare class ChatElement extends ChatElement_base implements IChatElementProps, ISlottable { private readonly _intl; private readonly _provider; private _scrollToEnd; private _begin; private _inputElement?; /** * @public */ constructor(); /** * Returns the `is` property. * The `is` property represents natural name of this element. * * @public * @static * @readonly */ static get is(): string; /** * Gets or sets the `scrollToEnd` property. * If `true`, in order to `begin` property, the chat will scroll to top or bottom of the chat messages. * * @public * @attr */ get scrollToEnd(): boolean; set scrollToEnd(value: boolean); /** * Gets or sets the `begin` property. * * @public */ get begin(): ChatBegin; set begin(value: ChatBegin); /** * Returns the `intl` property. * * @public * @readonly */ get intl(): ChatElementIntl; /** * Returns the `input` property. * * @private * @readonly */ get inputElement(): ChatInputElement | undefined; onSlotChanges(slotName?: string): void; /** * @protected */ protected onWidthPropertyChanged(_prev?: CssLength, next?: CssLength): void; /** * @protected */ protected onHeightPropertyChanged(_prev?: CssLength, next?: CssLength): void; } /** * @public */ export declare namespace ChatElement { type Props = IChatElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-chat': ChatElement; } } export {}; //# sourceMappingURL=ChatElement.d.ts.map