@droppii-org/chat-sdk
Version:
Droppii React Chat SDK
16 lines • 661 B
TypeScript
import { MessageItem } from "@openim/wasm-client-sdk";
import { UpdateSessionResponse } from "../types/dto";
type EmitterEvents = {
CHAT_LIST_SCROLL_TO_BOTTOM: void;
CHAT_LIST_SCROLL_TO_MESSAGE: string;
PUSH_NEW_MSG: MessageItem;
UPDATE_ONE_MSG: MessageItem;
UPDATE_SESSION: UpdateSessionResponse;
};
declare const emitter: import("mitt").Emitter<EmitterEvents>;
export declare const emit: {
<Key extends keyof EmitterEvents>(type: Key, event: EmitterEvents[Key]): void;
<Key extends keyof EmitterEvents>(type: undefined extends EmitterEvents[Key] ? Key : never): void;
};
export default emitter;
//# sourceMappingURL=events.d.ts.map