Files
matrix-quotes-bot/node_modules/matrix-events-sdk/lib/interpreters/legacy/MRoomMessage.d.ts
unfunny dfe4cc537f init
2026-09-13 00:29:11 -04:00

13 lines
552 B
TypeScript

import { IPartialEvent } from "../../IPartialEvent";
import { Optional } from "../../types";
import { ExtensibleEvent } from "../../events/ExtensibleEvent";
import { NamespacedValue } from "../../NamespacedValue";
export declare const LEGACY_M_ROOM_MESSAGE: NamespacedValue<"m.room.message", string>;
export interface IPartialLegacyContent {
body: string;
msgtype: string;
format?: string;
formatted_body?: string;
}
export declare function parseMRoomMessage(wireEvent: IPartialEvent<IPartialLegacyContent>): Optional<ExtensibleEvent>;