@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
29 lines (28 loc) • 1.42 kB
TypeScript
import type { TypedUseSelectorHook } from "react-redux";
import type { ReplykeState } from "./replykeReducers";
/**
* Typed dispatch hook for Replyke.
* Works in both standalone and integration modes.
*/
export declare const useReplykeDispatch: () => import("@reduxjs/toolkit").ThunkDispatch<{
replyke: {
auth: import("./slices/authSlice").AuthState;
appNotifications: import("./slices/appNotificationsSlice").AppNotificationsState;
collections: import("./slices/collectionsSlice").CollectionsState;
user: import("./slices/userSlice").UserState;
entityLists: import("./slices/entityListsSlice").EntityListsState;
spaceLists: import("./slices/spaceListsSlice").SpaceListsState;
accounts: import("./slices/accountsSlice").AccountsState;
chat: import("..").ChatState;
};
replykeApi: import("@reduxjs/toolkit/query").CombinedState<{}, "AppNotification" | "Collection" | "CollectionEntities" | "User" | "Entity" | "Space" | "SpaceMember", "replykeApi">;
}, undefined, import("@reduxjs/toolkit").UnknownAction> & import("@reduxjs/toolkit").Dispatch<import("@reduxjs/toolkit").UnknownAction>;
/**
* Typed selector hook for Replyke state.
* Works in both standalone and integration modes.
*
* State is always accessed via the 'replyke' namespace.
*/
export declare const useReplykeSelector: TypedUseSelectorHook<{
replyke: ReplykeState;
}>;