lml-main
Version:
This is now a mono repository published into many standalone packages.
31 lines (30 loc) • 1.59 kB
TypeScript
import { Dispatch } from 'redux';
import { AppState } from '../../common/reducers';
export declare const SET_ACTIVE_COURIER = "SET_ACTIVE_COURIER";
export declare const UNSET_ACTIVE_COURIER = "UNSET_ACTIVE_COURIER";
export declare const SET_EXPANDED_COURIER = "SET_EXPANDED_COURIER";
export declare const UNSET_EXPANDED_COURIER = "UNSET_EXPANDED_COURIER";
export interface SetActiveCourierAction {
type: 'SET_ACTIVE_COURIER';
refId: string;
}
export interface UnsetActiveCourierAction {
type: 'UNSET_ACTIVE_COURIER';
refId: string;
}
export interface SetExpandedCourierAction {
type: 'SET_EXPANDED_COURIER';
refId: string;
}
export interface UnsetExpandedCourierAction {
type: 'UNSET_EXPANDED_COURIER';
refId: string;
}
export declare type CourierFlagsActions = SetActiveCourierAction | UnsetActiveCourierAction | SetExpandedCourierAction | UnsetActiveCourierAction;
export declare const setActiveCourier: (refId: string) => SetActiveCourierAction;
export declare const unsetActiveCourier: (refId: string) => UnsetActiveCourierAction;
export declare const setExpandedCourier: (refId: string) => SetExpandedCourierAction;
export declare const unsetExpandedCourier: (refId: string) => UnsetExpandedCourierAction;
export declare const activatePreviousCourier: () => (dispatch: Dispatch<any>, getState: () => AppState) => void;
export declare const activateNextCourier: () => (dispatch: Dispatch<any>, getState: () => AppState) => void;
export declare const activateFirstCourierIfNoneActive: () => (dispatch: Dispatch<any>, getState: () => AppState) => void;