UNPKG

1.95 kBTypeScriptView Raw
1import { Action } from '@ngrx/store';
2import * as Actions from './actions';
3import { ActionSanitizer, StateSanitizer, Predicate, StoreDevtoolsConfig } from './config';
4import { ComputedState, LiftedAction, LiftedActions, LiftedState } from './reducer';
5export declare function difference(first: any[], second: any[]): any[];
6/**
7 * Provides an app's view into the state of the lifted store.
8 */
9export declare function unliftState(liftedState: LiftedState): any;
10export declare function unliftAction(liftedState: LiftedState): LiftedAction;
11/**
12 * Lifts an app's action into an action on the lifted store.
13 */
14export declare function liftAction(action: Action): Actions.PerformAction;
15/**
16 * Sanitizes given actions with given function.
17 */
18export declare function sanitizeActions(actionSanitizer: ActionSanitizer, actions: LiftedActions): LiftedActions;
19/**
20 * Sanitizes given action with given function.
21 */
22export declare function sanitizeAction(actionSanitizer: ActionSanitizer, action: LiftedAction, actionIdx: number): LiftedAction;
23/**
24 * Sanitizes given states with given function.
25 */
26export declare function sanitizeStates(stateSanitizer: StateSanitizer, states: ComputedState[]): ComputedState[];
27/**
28 * Sanitizes given state with given function.
29 */
30export declare function sanitizeState(stateSanitizer: StateSanitizer, state: any, stateIdx: number): any;
31/**
32 * Read the config and tell if actions should be filtered
33 */
34export declare function shouldFilterActions(config: StoreDevtoolsConfig): string[] | Predicate;
35/**
36 * Return a full filtered lifted state
37 */
38export declare function filterLiftedState(liftedState: LiftedState, predicate?: Predicate, safelist?: string[], blocklist?: string[]): LiftedState;
39/**
40 * Return true is the action should be ignored
41 */
42export declare function isActionFiltered(state: any, action: LiftedAction, predicate?: Predicate, safelist?: string[], blockedlist?: string[]): true | RegExpMatchArray;