UNPKG

swap-chat-react

Version:
21 lines (20 loc) 748 B
/// <reference types="react" /> import type { Client, ChannelResponse, EventTypes } from 'web2-mq'; import { AppTypeEnum } from '../../../context/ChatContext'; declare type StatusType = { error: boolean; loading: boolean; }; export declare const usePaginatedChannels: (client: Client, appType: AppTypeEnum) => { status: StatusType; channels: ChannelResponse[]; refreshing: boolean; loadNextPage: () => void; handleEvent: (props: { type: EventTypes; }) => void; activeChannel: ChannelResponse | null; changeActiveChannelEvent: (channel: ChannelResponse) => void; setActiveChannel: import("react").Dispatch<import("react").SetStateAction<ChannelResponse | null>>; }; export {};