UNPKG

@croct/rule-engine-url-variables

Version:

A rule engine extension for passing variables through the URL.

21 lines (20 loc) 651 B
import { JsonValue } from '@croct/plug/sdk/json'; export declare type Variables = { [key: string]: JsonValue; }; export interface VariableStore { getVariables(): Variables; setVariable(name: string, value: JsonValue): void; } export declare class PageStore implements VariableStore { private readonly storage; getVariables(): Variables; setVariable(name: string, value: JsonValue): void; } export declare class LocalStore implements VariableStore { private readonly storage; constructor(storage: Storage); getVariables(): Variables; private getVariable; setVariable(name: string, value: JsonValue): void; }