import { PersistedObservable } from '../../../observable/persistedObservable'; import { Identifiable, Store } from '../../../store/store'; import { RiverConnection } from '../../river-connection/riverConnection'; import { Members } from '../../members/members'; import type { ChannelMessage_Post_Attachment, ChannelMessage_Post_Mention, ChannelProperties, PlainMessage } from '@towns-protocol/proto'; import { MessageTimeline } from '../../timeline/timeline'; export interface GdmModel extends Identifiable { /** The id of the DM. */ id: string; /** Whether the SyncAgent has loaded this data. */ initialized: boolean; /** Whether the current user has joined the DM. */ isJoined: boolean; /** The metadata of the DM. @see {@link ChannelProperties} */ metadata?: ChannelProperties; } export declare class Gdm extends PersistedObservable { private riverConnection; timeline: MessageTimeline; members: Members; constructor(id: string, riverConnection: RiverConnection, store: Store); protected onLoaded(): void; sendMessage(message: string, options?: { threadId?: string; replyId?: string; mentions?: PlainMessage[]; attachments?: PlainMessage[]; }): Promise<{ eventId: string; }>; pin(eventId: string): Promise<{ eventId: string; newEvents: import("@towns-protocol/proto").EventRef[]; }>; unpin(eventId: string): Promise<{ eventId: string; newEvents: import("@towns-protocol/proto").EventRef[]; }>; sendReaction(refEventId: string, reaction: string): Promise<{ eventId: string; }>; /** Redacts your own event. * @param eventId - The event id of the message to redact * @param reason - The reason for the redaction */ redact(eventId: string, reason?: string): Promise<{ eventId: string; }>; /** Redacts any message as an admin. * @param eventId - The event id of the message to redact */ adminRedact(eventId: string): Promise<{ eventId: string; }>; private onStreamInitialized; private onStreamUserJoined; private onStreamUserLeft; } //# sourceMappingURL=gdm.d.ts.map