swap-chat-react
Version:
swap-chat-react-components
19 lines (18 loc) • 540 B
TypeScript
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 {};