UNPKG

@signalwire/core

Version:
22 lines 851 B
import { InternalChatMessageEntity, PaginationCursor } from '../types'; import { BaseRPCResult } from '../utils/interfaces'; export interface GetMembersInput { channel: string; } export interface GetMessagesInput { channel: string; } export interface GetMessagesOutput extends BaseRPCResult { messages: InternalChatMessageEntity[]; cursor: PaginationCursor; } export declare function applyCommonMethods<T extends new (...args: any[]) => any>(targetClass: T): { new (...args: any[]): { [x: string]: any; getMembers(params: GetMembersInput): any; getMessages(params: GetMessagesInput): any; setMemberState({ memberId, ...rest }?: Record<string, unknown>): any; getMemberState({ memberId, ...rest }?: Record<string, unknown>): any; }; } & T; //# sourceMappingURL=applyCommonMethods.d.ts.map