@sendbird/uikit-react
Version:
Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.
20 lines (19 loc) • 913 B
TypeScript
import { SendableMessageType } from './index';
/**
* @param ms - milliseconds to delay
* @returns Promise that resolves after the specified time
*/
export declare const delay: (ms?: number) => Promise<unknown>;
export declare const noop: () => void;
export declare const getSenderProfileUrl: (message: SendableMessageType) => string;
export declare const getSenderName: (message: SendableMessageType) => string;
export declare const isAboutSame: (a: number, b: number, px: number) => boolean;
export declare const deleteNullish: <T>(obj: T) => T;
export declare function openURL(url?: string | null): void;
type Falsy = undefined | null | false | 0 | '';
export declare function classnames(...args: (string | Falsy)[]): string;
declare const _default: {
getSenderName: (message: SendableMessageType) => string;
getSenderProfileUrl: (message: SendableMessageType) => string;
};
export default _default;