UNPKG

1.62 kBTypeScriptView Raw
1import { ApiClientConfig, HostFeatures } from './types';
2export declare const API_CLIENT_LOAD = "APICLIENT::LOAD";
3export declare const API_CLIENT_UNLOAD = "APICLIENT::UNLOAD";
4export declare const REDUCER_LOAD = "REDUCER::LOAD";
5export declare const REDUCER_LOAD_COMPLETE = "REDUCER::LOAD_COMPLETE";
6export interface ApiClientLoadAction {
7 type: typeof API_CLIENT_LOAD;
8 payload: ApiClientConfig;
9}
10export interface ApiClientUnloadAction {
11 type: typeof API_CLIENT_UNLOAD;
12 payload: ApiClientConfig;
13}
14export interface LoadReducerAction {
15 type: typeof REDUCER_LOAD;
16 payload: {
17 feature: HostFeatures;
18 };
19}
20export interface LoadCompleteReducerAction {
21 type: typeof REDUCER_LOAD_COMPLETE;
22 payload: {
23 feature: HostFeatures;
24 };
25}
26export declare function apiClientLoad(payload: ApiClientConfig): ApiClientLoadAction;
27export declare function apiClientUnload(payload: ApiClientConfig): ApiClientUnloadAction;
28/**
29 * Creates an load reducer action
30 * @internal
31 */
32export declare function hostLoadReducer(feature: HostFeatures): LoadReducerAction;
33/**
34 * Creates an add reducer action
35 * @internal
36 */
37export declare function hostLoadCompleteReducer(feature: HostFeatures): LoadCompleteReducerAction;
38/**
39 * Predicate to determine if an action is an load reducer action
40 * @internal
41 */
42export declare function isLoadReducerAction(action: any): action is LoadReducerAction;
43/**
44 * Predicate to determine if an action is an load reducer complete action
45 * @internal
46 */
47export declare function isLoadReducerCompleteAction(action: any): action is LoadCompleteReducerAction;