@sendbird/uikit-react
Version:
Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.
16 lines (15 loc) • 1.02 kB
TypeScript
import { FileInfo } from '@sendbird/chat/message';
import { MockErrorType } from './error';
import { MockMessageType } from './message';
type OnPendingCallbackType = (pendingMessage: MockMessageType) => void;
type OnFailedCallbackType = (error: MockErrorType, failedMessage: MockMessageType) => void;
type OnSucceededCallbackType = (succeededMessage: MockMessageType) => void;
type OnFileUploadedCallbackType = (requestId: number, index: number, fileInfo: FileInfo, error: MockErrorType) => void;
export type MockMessageRequestHandlerType = {
onPending: (callback?: OnPendingCallbackType) => MockMessageRequestHandlerType;
onFailed: (callback?: OnFailedCallbackType) => MockMessageRequestHandlerType;
onSucceeded: (callback?: OnSucceededCallbackType) => MockMessageRequestHandlerType;
onFileUploaded: (callback?: OnFileUploadedCallbackType) => MockMessageRequestHandlerType;
};
export declare function getMockMessageRequestHandler(isForSucceeded?: boolean): MockMessageRequestHandlerType;
export {};