import { Quote, AttachmentPointer, Preview, } from '../../ts/session/messages/outgoing'; interface UploadResponse { url: string; id?: number; } export interface LokiAppDotNetServerInterface { findOrCreateChannel( api: LokiPublicChatFactoryAPI, channelId: number, conversationId: string ): Promise; uploadData(data: FormData): Promise; uploadAvatar(data: FormData): Promise; putAttachment(data: ArrayBuffer): Promise; putAvatar(data: ArrayBuffer): Promise; } export interface LokiPublicChannelAPI { sendMessage( data: { quote?: Quote; attachments: Array; preview: Array; body?: string; }, timestamp: number ): Promise; } declare class LokiAppDotNetServerAPI implements LokiAppDotNetServerInterface { constructor(ourKey: string, url: string); } export default LokiAppDotNetServerAPI;