import { C } from 'deltachat-node/dist/constants' ; import { _callDcMethodAsync } from './ipc' ; import { FullChat , ChatListItemType , MessageType , JsonLocations , Theme , JsonContact , MessageSearchResult , Credentials , DeltaChatAccount , DesktopSettings , QrCodeResponse , } from '../shared/shared-types' ; import { MuteDuration } from '../shared/constants' ; import { LocaleData } from '../shared/localize' ; export type sendMessageParams = { text ? : string | null ; filename ? : string ; location ? : { lat : number ; lng : number ; } ; quoteMessageId ? : number ; } ; class DeltaRemote { call ( fnName , newImage ) ; call ( fnName ) ; call ( fnName ) ; call ( fnName , email ) ; call ( fnName , email ) ; call ( fnName , qrCode ) ; call ( fnName ) ; call ( fnName , qrCode ) ; call ( fnName ) ; call ( fnName , messageId , key ) ; call ( fnName , dir ) ; call ( fnName , file ) ; call ( fnName , chatId ) ; call ( fnName ) ; call ( fnName , chatId ) ; call ( fnName , listFlags ? , queryStr ? , queryContactId ? ) ; call ( fnName , entries ) ; call ( fnName , chatID ) ; call ( fnName , chatId ) ; call ( fnName ) ; call ( fnName , contactId ) ; call ( fnName , contactId ) ; call ( fnName ) ; call ( fnName , contactId , name ) ; call ( fnName , email , name ? ) ; call ( fnName , contactId ) ; call ( fnName , contactId ) ; call ( fnName , listFlags , queryStr ) ; call ( fnName , ids ) ; call ( fnName , listFlags , queryStr ) ; call ( fnName , contactId ) ; call ( fnName , email ) ; call ( fnName , chatId , msgType1 , msgType2 ) ; call ( fnName , chatId ) ; call ( fnName , chatId ? ) ; call ( fnName , chatId ? ) ; call ( fnName , chatId ) ; call ( fnName , chatId , name ) ; call ( fnName , chatId , name , image , members ) ; call ( fnName , chatId , contactId ) ; call ( fnName , chatId , newImage ) ; call ( fnName , chatId , duration ) ; call ( fnName , verified , name ) ; call ( fnName , chatId ) ; call ( fnName , chatId , visibility ) ; call ( fnName , chatId ) ; call ( fnName , chatId ) ; call ( fnName , chatId ) ; call ( fnName , chatId , ephemeralTimer ) ; call ( fnName , chatId ) ; call ( fnName , chatId ) ; call ( fnName , chatId ) ; call ( fnName , messageId , direction ) ; call ( fnName , latitude , longitude , accuracy ) ; call ( fnName , chatId , contactId , timestampFrom , timestampTo ) ; call ( fnName , accountId ) ; call ( fnName , credentials ) ; call ( fnName ) ; call ( fnName , accountId ) ; call ( fnName , accountId ) ; call ( fnName , accountId ) ; call ( fnName , accountId ) ; call ( fnName ) ; call ( fnName ) ; call ( fnName ) ; call ( fnName , chatId , params ) ; call ( fnName , chatId , stickerPath ) ; call ( fnName , id ) ; call ( fnName , msgId ) ; call ( fnName , messageIds ) ; call ( fnName , msgId ) ; call ( fnName , msgId ) ; call ( fnName , chatId ) ; call ( fnName , chatId , { text , file , quotedMessageId , } ) ; call ( fnName , id ) ; call ( fnName , chatid , flags ? ) ; call ( fnName , msgId , chatId ) ; call ( fnName , query , chatId ? ) ; call ( fnName , msgIds ) ; call ( fnName , messageId ) ; call ( fnName , key , value ) ; call ( fnName , key ) ; call ( fnName , keys ) ; call ( fnName , directory ) ; call ( fnName , directory ) ; call ( fnName , { mail_security , send_security , } ) ; call ( fnName , key , value ) ; call ( fnName ) ; call ( fnName , file , isDefaultPicture ) ; call ( fnName , fromServer , seconds ) ; call ( fnName , qrCodeContent ) ; call ( fnName ) ; call ( fnName ) ; call ( fnName ) ; call ( fnName ) ; call ( fnName , url ) ; call ( fnName , locale ) ; call ( fnName , locale ) ; call ( fnName ) ; call ( fnName , address ) ; call ( fnName ) ; call ( fnName , address ) ; call ( fnName ) ; call ( fnName ) ; call ( fnName , ... args ) { return _callDcMethodAsync ( fnName , ... args ) ; } } export const DeltaBackend = new DeltaRemote ( ) ;