You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/js/modules/loki_public_chat_api.d.ts

28 lines
752 B
TypeScript

import {
LokiAppDotNetServerInterface,
LokiPublicChannelAPI,
} from './loki_app_dot_net_api';
export interface LokiPublicChatFactoryInterface {
ourKey: string;
findOrCreateServer(url: string): Promise<LokiAppDotNetServerInterface | null>;
findOrCreateChannel(
url: string,
channelId: number,
conversationId: string
): Promise<LokiPublicChannelAPI | null>;
getListOfMembers(): Promise<
Array<{ authorPhoneNumber: string; authorProfileName?: string }>
>;
setListOfMembers(
members: Array<{ authorPhoneNumber: string; authorProfileName?: string }>
);
}
declare class LokiPublicChatFactoryAPI
implements LokiPublicChatFactoryInterface {
constructor(ourKey: string);
}
export default LokiPublicChatFactoryAPI;