UNPKG

780 BTypeScriptView Raw
1import { Group, MetaAction } from '../types';
2export declare enum ActionType {
3 REQUEST = "APP::SESSION_TOKEN::REQUEST",
4 RESPOND = "APP::SESSION_TOKEN::RESPOND"
5}
6export declare enum Action {
7 REQUEST = "REQUEST",
8 RESPOND = "RESPOND"
9}
10export interface Payload {
11 sessionToken: string;
12}
13export interface ActionBase extends MetaAction {
14 readonly group: typeof Group.SessionToken;
15}
16export interface RequestSessionTokenAction extends ActionBase {
17 readonly type: typeof ActionType.REQUEST;
18}
19export interface RespondWithSessionTokenAction extends ActionBase {
20 readonly type: typeof ActionType.RESPOND;
21}
22export declare function request(): RequestSessionTokenAction;
23export declare function respond(sessionToken: Payload): RespondWithSessionTokenAction;