UNPKG

@sendbird/uikit-react

Version:

Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.

23 lines (22 loc) 2.02 kB
import React from 'react'; import { EmojiContainer } from '@sendbird/chat'; import { GroupChannel, Member } from '@sendbird/chat/groupChannel'; import { CoreMessageType, SendableMessageType } from '../../../utils'; import { BaseMessage } from '@sendbird/chat/message'; export declare const scrollToRenderedMessage: (scrollRef: React.RefObject<HTMLElement>, initialTimeStamp: number, setIsScrolled?: (val: boolean) => void) => void; export declare const scrollIntoLast: (initialTry: number, scrollRef: React.RefObject<HTMLElement>, setIsScrolled?: (val: boolean) => void) => void; export declare const isOperator: (groupChannel?: GroupChannel) => boolean; export declare const isDisabledBecauseFrozen: (groupChannel?: GroupChannel | null) => boolean; export declare const isDisabledBecauseMuted: (groupChannel?: GroupChannel | null) => boolean; export declare const getAllEmojisMapFromEmojiContainer: (emojiContainer: EmojiContainer) => Map<any, any>; export declare const getNicknamesMapFromMembers: (members?: Member[]) => Map<string, string>; export declare const mergeAndSortMessages: (oldMessages: BaseMessage[], newMessages: BaseMessage[]) => BaseMessage[]; /** * @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: BaseMessage) => string; export declare const passUnsuccessfullMessages: (allMessages: (CoreMessageType | SendableMessageType)[], newMessage: CoreMessageType | SendableMessageType) => (import("@sendbird/chat/message").UserMessage | import("@sendbird/chat/message").FileMessage | import("@sendbird/chat/message").MultipleFilesMessage | import("@sendbird/chat/message").AdminMessage)[]; export declare const pxToNumber: (px: string | number) => number; export declare const isAboutSame: (a: number, b: number, px: number) => boolean;