TeaSpeak-Client/imports/shared-app/conversations/PrivateConversationHistory.d.ts
2021-02-07 20:01:37 +01:00

14 lines
469 B
TypeScript

import { ChatEvent } from "../ui/frames/side/AbstractConversationDefinitions";
export declare function queryConversationEvents(clientUniqueId: string, query: {
begin: number;
end: number;
direction: "backwards" | "forwards";
limit: number;
}): Promise<{
events: (ChatEvent & {
databaseId: number;
})[];
hasMore: boolean;
}>;
export declare function registerConversationEvent(clientUniqueId: string, event: ChatEvent): Promise<void>;