UNPKG

swap-chat-react

Version:
19 lines (18 loc) 540 B
import type { EventTypes, UserInfo, Client } from 'web2-mq'; declare type StatusType = { error: boolean; loading: boolean; }; export declare const usePaginatedContacts: (client: Client) => { status: StatusType; contacts: UserInfo[]; refreshing: boolean; loadNextPage: () => void; handleEvent: (props: { type: EventTypes; }) => void; queryContacts: () => Promise<void>; changeActiveContactEvent: (contact: UserInfo) => void; activeContact: UserInfo | null; }; export {};