import { FlowNode } from 'bpmn-moddle'; import { Observable } from 'rxjs'; import { StateObservable } from 'redux-observable'; import { ProcessState } from '../../state/reducers'; import { TokenAction, FlowNodeAction } from '../../state/actions'; import { Token } from '../../state/reducers/tokens'; export declare function extendedTokenAction(action: Type, token: Token | undefined): Type & { token: Token | undefined; }; export declare function extendedAndValidatedTokenAction(action: Type, token: Token): Type & { token: Token; }; export declare function extendedFlowNodeAction(action: Type, token: Token | undefined, flowNode: FlowNode | undefined): Type & { token: Token | undefined; flowNode: FlowNode | undefined; }; export declare function extendedAndValidatedFlowNodeAction(action: Type, token: Token, flowNode: FlowNode): Type & { token: Token; flowNode: FlowNode; }; /** * Will extend the incoming TokenAction with the correct token * * @param state$ the state stream to get the current token state of the instance */ export declare function extendTokenAction(state$: StateObservable): (source: Observable) => Observable; /** * Will only forward actions that have a valid token */ export declare function filterNonExistantToken(): (source: Observable) => Observable; /** * Will extend the incoming FlowNodeAction with the correct token and moddle element * * @param state$ the state stream to get the current token state of the instance */ export declare function extendFlowNodeAction(state$: StateObservable): (source: Observable) => Observable; /** * Will only forward actions if they have a valid token and flowNode */ export declare function filterNonExistantTokenOrFlowNode(): (source: Observable) => Observable; /** * Will only forward action if flowNode and token exists and the token is active on the flowNode */ export declare function filterTokenFlowNodeMismatch(): (source: Observable) => Observable; /** * Will only forward action if the flowNode has the * * @param bpmnType The expected type of the flowNode element */ export declare function filterFlowNodeTypeMismatch(bpmnType: String): (source: Observable) => Observable; /** * Will only forward actions on activity elements */ export declare function filterNonActivityType(): (source: Observable) => Observable; //# sourceMappingURL=extendActions.d.ts.map