@sendbird/uikit-react
Version:
Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.
18 lines (17 loc) • 1.25 kB
TypeScript
import { GroupChannel, Member } from '@sendbird/chat/groupChannel';
import { SendableMessageType } from '../../../utils';
export declare const getNicknamesMapFromMembers: (members?: Member[]) => Map<string, string>;
export declare const getParentMessageFrom: (message: SendableMessageType | null) => import("@sendbird/chat/message").BaseMessage;
export declare const isParentMessage: (message: SendableMessageType) => boolean;
export declare const isThreadMessage: (message: SendableMessageType) => boolean;
export declare const isAboutSame: (a: number, b: number, px: number) => boolean;
export declare const isEmpty: (val: unknown) => boolean;
export declare function compareIds(a: number | string, b: number | string): boolean;
/**
* @deprecated This function is deprecated and will be removed in the next major update.
* Using this function may cause the violation of the rules of hooks.
* Please use the `getMessageCreatedAt` function from the `@sendbird/uikit-react/utils` module instead.
*/
export declare const getMessageCreatedAt: (message: SendableMessageType) => string;
export declare const isReadMessage: (channel: GroupChannel, message: SendableMessageType) => boolean;
export declare const scrollIntoLast: (intialTry?: number) => void;