UNPKG

web3-mq-react

Version:
16 lines (15 loc) 634 B
/// <reference types="react" /> import type { Client } from 'web3-mq'; import type { CommonUserInfoType, SearchDidType } from '../../Chat/hooks/useQueryUserInfo'; export declare const usePaginatedMessages: (props: { client: Client; loginUserInfo: CommonUserInfoType; scrollBottom: () => void; getUserInfo: (didValue: string, didType: SearchDidType) => Promise<CommonUserInfoType | null>; }) => { msgListloading: boolean; loadMoreLoading: boolean; messageList: any[]; loadNextPage: () => Promise<void>; setMessages: import("react").Dispatch<import("react").SetStateAction<any[]>>; };