UNPKG

@universis/common

Version:

Universis - common directives and services

27 lines (26 loc) 1.02 kB
import { AngularDataContext } from '@themost/angular'; import * as i0 from "@angular/core"; export declare class LocalUserStorageService { private context; constructor(context: AngularDataContext); /** * * Indicates whether the localStorage is available * */ hasUserStorage(): boolean; getItem(key: string): Promise<any>; setItem(key: string, value: any): Promise<any>; removeItem(key: string): Promise<any>; static ɵfac: i0.ɵɵFactoryDeclaration<LocalUserStorageService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<LocalUserStorageService>; } export declare class SessionUserStorageService { private context; constructor(context: AngularDataContext); getItem(key: string): Promise<any>; setItem(key: string, value: any): Promise<any>; removeItem(key: string): Promise<any>; static ɵfac: i0.ɵɵFactoryDeclaration<SessionUserStorageService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<SessionUserStorageService>; }