import * as i0 from '@angular/core'; import { InjectionToken, ClassProvider, FactoryProvider } from '@angular/core'; declare const LOCAL_STORAGE: InjectionToken; declare abstract class LocalStorageRef { /** Gets the native local storage reference. */ get nativeLocalStorage(): Storage | object; } declare class BrowserLocalStorageRef extends LocalStorageRef { /** Initializes a new instance of the {@link BrowserLocalStorageRef} class. */ constructor(); /** Gets the native local storage object. */ get nativeLocalStorage(): Storage | object; } declare const localStorageFactory: (browserLocalStorageRef: BrowserLocalStorageRef, platformId: object) => Storage | object; declare const LOCALSTORAGE_PROVIDERS: (ClassProvider | FactoryProvider)[]; declare class TbxLocalStorage { [name: string]: any; readonly localStorage: Storage; readonly length: number; constructor(); /** @inheritDoc */ getItem(key: string): string | null; /** @inheritDoc */ setItem(key: string, value: string): void; /** @inheritDoc */ clear(): void; /** @inheritDoc */ key(index: number): string | null; /** @inheritDoc */ removeItem(key: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const SESSION_STORAGE: InjectionToken; declare abstract class SessionStorageRef { /** Gets the native session storage reference. */ get nativeSessionStorage(): Storage | object; } declare class BrowserSessionStorageRef extends SessionStorageRef { /** Initializes a new instance of the {@link BrowserSessionStorageRef} class. */ constructor(); /** Gets the native session storage object. */ get nativeSessionStorage(): Storage | object; } declare const sessionStorageFactory: (browserSessionStorageRef: BrowserSessionStorageRef, platformId: object) => Storage | object; declare const SESSIONSTORAGE_PROVIDERS: (ClassProvider | FactoryProvider)[]; declare class TbxSessionStorage implements Storage { [name: string]: any; readonly sessionStorage: Storage; readonly length: number; constructor(); /** @inheritDoc */ getItem(key: string): string | null; /** @inheritDoc */ setItem(key: string, value: string): void; /** @inheritDoc */ clear(): void; /** @inheritDoc */ key(index: number): string | null; /** @inheritDoc */ removeItem(key: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Provides safe access to the Browser's {@link localStorage} object. Inject the * {@link TbxLocalStorage} service to have access to the storage instead of * calling window.localStorage directly. */ declare const provideLocalStorage: () => (i0.ClassProvider | i0.FactoryProvider)[]; /** * Provides safe access to the Browser's {@link sessionStorage} object. Inject the * {@link TbxSessionStorage} service to have access to the storage instead of * calling window.sessionStorage directly. */ declare const provideSessionStorage: () => (i0.ClassProvider | i0.FactoryProvider)[]; export { BrowserLocalStorageRef, BrowserSessionStorageRef, LOCALSTORAGE_PROVIDERS, LOCAL_STORAGE, LocalStorageRef, SESSIONSTORAGE_PROVIDERS, SESSION_STORAGE, SessionStorageRef, TbxLocalStorage, TbxSessionStorage, localStorageFactory, provideLocalStorage, provideSessionStorage, sessionStorageFactory };