UNPKG

web3-mq-react

Version:
22 lines (21 loc) 831 B
/// <reference types="react" /> import type { Client, EventTypes } from 'web3-mq'; import { AppTypeEnum } from '../../../context'; import type { CommonUserInfoType, SearchDidType } from '../../Chat/hooks/useQueryUserInfo'; declare type StatusType = { error: boolean; loading: boolean; }; export declare const usePaginatedChannels: (client: Client, appType: AppTypeEnum, getUserInfo: (didValue: string, didType: SearchDidType) => Promise<CommonUserInfoType | null>) => { status: StatusType; channels: any[]; refreshing: boolean; loadNextPage: () => void; handleEvent: (props: { type: EventTypes; }) => Promise<void>; activeChannel: any; changeActiveChannelEvent: (channel: any) => Promise<void>; setActiveChannel: import("react").Dispatch<any>; }; export {};