UNPKG

@sendbird/uikit-utils

Version:

A collection of utility functions and constants for building chat UI components with Sendbird UIKit.

32 lines (31 loc) 1.06 kB
type Func = (...args: unknown[]) => Promise<unknown>; export declare class BufferedRequest { static markAsRead: { push(func: Func, lane?: string): void; shift(): void; handleIdle(): void; handleProcessing(): void; invoke(): void; }; static markAsDelivered: { push(func: Func, lane?: string): void; shift(): void; handleIdle(): void; handleProcessing(): void; invoke(): void; }; static updateMarkAsReadOptions(reqPerTimeout: number, timeoutMills: number): void; static updateMarkAsDeliveredOptions(reqPerTimeout: number, timeoutMills: number): void; static get reqPerTimeout(): number; static set reqPerTimeout(value: number); static get timeoutMills(): number; static set timeoutMills(value: number); static create(reqPerTimeout?: number, timeoutMills?: number): { push(func: Func, lane?: string): void; shift(): void; handleIdle(): void; handleProcessing(): void; invoke(): void; }; } export {};