import ActionFunction from '../ActionFunction'; import LegacyDispatchFunction from '../LegacyDispatchFunction'; import ActionContext from '../ActionContext'; export interface ActionHandler { (...args: any[]): Promise | void; } export declare function stitch(next: LegacyDispatchFunction, action: ActionFunction, actionType: string, args: IArguments, actionContext: ActionContext): void | Promise; export declare function subscribe(actionType: string, callback: T): void; export declare function raise(actionType: string, callback?: (actionToExecute: T) => void): void; export declare function raiseAction(actionType: string): T;