import { LitElement } from 'lit'; import type { DiscordTimestamp, LightTheme, Profile } from '../../types.js'; import '../discord-author-info/DiscordAuthorInfo.js'; export declare const messageProfile: { __context__: Profile | undefined; }; export declare const messageTimestamp: { __context__: string | undefined; }; export declare class DiscordMessage extends LitElement implements LightTheme { /** * @internal */ static readonly styles: import("lit").CSSResult; /** * The id of the profile data to use. */ profile: string | undefined; /** * The message author's username. * * @defaultValue 'User' */ author: string | undefined; /** * The message author's avatar. Can be an avatar shortcut, relative path, or external link. */ avatar: string | undefined; /** * Whether the message author is a bot or not. * Only works if `server` and `officialApp` is `false` or `undefined`. */ bot: boolean; /** * Whether the message author is a server crosspost webhook or not. * Only works if `bot` and `officialApp` is `false` or `undefined`. */ server: boolean; /** * Whether the message author is official app. * Only works if `bot` and `server` is `falns` */ officialApp: boolean; /** * Whether the bot is verified or not. * Only works if `bot` is `true` */ verified: boolean; /** * Whether the author is the original poster. */ op: boolean; /** * Whether the message has been edited or not. */ edited: boolean; /** * The message author's primary role color. Can be any [CSS color value](https://www.w3schools.com/cssref/css_colors_legal.asp). */ roleColor: string | undefined; /** * The message author's role icon URL. */ roleIcon: string | undefined; /** * The name of the role to use as alternative image text. */ roleName: string | undefined; /** * The clan's tag icon URL. */ clanIcon: string | undefined; /** * The name of the clan you are part of */ clanTag: string | undefined; /** * Whether to highlight this message. */ highlight: boolean; /** * Whether to make this message ephemeral. */ ephemeral: boolean; rawTimestamp: string; /** * The timestamp to use for the message date. * * if {@link DiscordMessage.messageBodyOnly} is `true`, this will be shown in the gutter before the message on hover. */ timestamp: DiscordTimestamp; /** * Whether to use 24-hour format for the timestamp. */ twentyFour: boolean; messageBodyOnly: boolean; lightTheme: boolean; compactMode: boolean; noBackground: boolean; hasThread: boolean; dismissMessageClicked: () => void; protected willUpdate(): void; private handleSpaceToDismissMessage; resolvedProfile?: Profile; isInForwardedMessage: boolean; protected render(): import("lit").TemplateResult<1>; private resolveAvatar; } declare global { interface HTMLElementTagNameMap { 'discord-message': DiscordMessage; } } //# sourceMappingURL=DiscordMessage.d.ts.map