UNPKG

@sberdevices/plasma-temple

Version:

SberDevices CanvasApp Templates.

24 lines 1.92 kB
import { CharacterId } from '@sberdevices/assistant-client'; import { AppStateActionType, CharacterAction, InsetsAction, PushHistoryAction, ReplacePreviousHistoryAction, PopHistoryAction, ChangeStateAction, AssistantInsets, History } from './types'; export declare const setCharacter: (character: CharacterId) => CharacterAction; export declare const setInsets: (insets: AssistantInsets) => InsetsAction; export declare const pushHistory: <T extends Record<string, any> = Record<string, any>, N extends Extract<keyof T, string> = Extract<keyof T, string>>(name: N, data: T[N]) => PushHistoryAction; export declare const replacePreviousHistory: <T extends Record<string, any> = Record<string, any>, N extends Extract<keyof T, string> = Extract<keyof T, string>>(screens: { name: N; data: T[N]; }[]) => ReplacePreviousHistoryAction; export declare const popHistory: (delta?: number | undefined) => PopHistoryAction; export declare const changeActiveScreenState: (data: History) => ChangeStateAction; export declare const getActionCreators: <T extends Record<string, any> = Record<string, any>, N extends Extract<keyof T, string> = Extract<keyof T, string>>() => { pushHistory: <S extends N>(name: S, data: T[S]) => import("../utils/createAction").Action<AppStateActionType.PUSH_HISTORY, { history: History<string, unknown>; }>; pushScreen: <S_1 extends N>(name: S_1) => import("../utils/createAction").Action<AppStateActionType.PUSH_HISTORY, { history: History<string, unknown>; }>; popHistory: (delta?: number | undefined) => PopHistoryAction; setCharacter: (character: CharacterId) => CharacterAction; setInsets: (insets: AssistantInsets) => InsetsAction; changeActiveScreenState: <S_2 extends N>(data: T[S_2]) => import("../utils/createAction").Action<AppStateActionType.CHANGE_ACTIVE_SCREEN_STATE, History<string, unknown>>; }; //# sourceMappingURL=actions.d.ts.map