UNPKG

@sendbird/uikit-react

Version:

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

19 lines (18 loc) 1.34 kB
import type React from 'react'; import type { User } from '@sendbird/chat'; import type { OpenChannel, ParticipantListQuery } from '@sendbird/chat/openChannel'; import { Logger } from '../../../lib/Sendbird/types'; import { SendableMessageType } from '../../../utils'; /** * @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 shouldFetchMore: (messageLength: number, maxMessages?: number) => boolean; export declare const scrollIntoLast: (initialTry: number, scrollRef: React.RefObject<HTMLElement>) => void; export declare const kFormatter: (num: number) => string; export declare const isOperator: (openChannel: OpenChannel, userId: string) => boolean; export declare const isDisabledBecauseFrozen: (openChannel: OpenChannel | null, userId: string) => boolean; export declare const isDisabledBecauseMuted: (mutedParticipantIds: Array<string>, userId: string) => boolean; export declare const fetchWithListQuery: (listQuery: ParticipantListQuery, logger: Logger, eachQueryNextCallback: (users: Array<User>) => void) => void;