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