UNPKG

@klevu/core

Version:

Typescript SDK that simplifies development on Klevu backend. Klevu provides advanced AI-powered search and discovery solutions for online retailers.

14 lines (13 loc) 516 B
export declare enum StorageType { SESSION = "session", LOCAL = "local" } export declare class KlevuStorage { static dataProtectedKeys: string[]; static addKey: (key: string) => void; static removeKey: (key: string) => void; static listKeys(): string[]; static getItem: (key: string, storageType?: StorageType) => string | null; static setItem: (key: string, value: string, storageType?: StorageType) => void; static removeItem: (key: string, storageType?: StorageType) => void; }