games_app/backend/dist/services/supportRealtimeService.d.ts
2026-06-29 15:01:23 +02:00

24 lines
811 B
TypeScript

export type SupportRealtimeEvent = {
type: 'message.new';
conversationId: string;
messageId: string;
message?: Record<string, unknown>;
} | {
type: 'message.read';
conversationId: string;
} | {
type: 'conversation.updated';
conversationId: string;
} | {
type: 'typing';
conversationId: string;
party: 'user' | 'staff';
active: boolean;
};
export declare function publishSupportEvent(conversationId: string, event: SupportRealtimeEvent): Promise<void>;
export declare function setTypingIndicator(conversationId: string, party: 'user' | 'staff', active: boolean): Promise<void>;
export declare function getTypingIndicators(conversationId: string): Promise<{
userTyping: boolean;
staffTyping: boolean;
}>;
//# sourceMappingURL=supportRealtimeService.d.ts.map