1 | import { InjectionToken, Provider } from '@angular/core';
|
2 | import { NgxWebstorageConfiguration } from './config';
|
3 | export declare const LIB_CONFIG: InjectionToken<NgxWebstorageConfiguration>;
|
4 | export declare enum InternalNgxWebstorageFeatureKind {
|
5 | Config = 1,
|
6 | LocalStorage = 2,
|
7 | SessionStorage = 3
|
8 | }
|
9 | export type NgxWebstorageFeatureKind = string | InternalNgxWebstorageFeatureKind;
|
10 | export type NgxWebstorageFeature<FeatureKind extends NgxWebstorageFeatureKind> = {
|
11 | kind: FeatureKind;
|
12 | providers: Provider[];
|
13 | };
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | export declare function provideNgxWebstorage(...features: NgxWebstorageFeature<NgxWebstorageFeatureKind>[]): import("@angular/core").EnvironmentProviders;
|
24 | export declare function makeNgxWebstorageFeature<FeatureKind extends NgxWebstorageFeatureKind>(kind: FeatureKind, providers: Provider[]): NgxWebstorageFeature<FeatureKind>;
|
25 | export declare function withNgxWebstorageConfig(config: NgxWebstorageConfiguration): NgxWebstorageFeature<InternalNgxWebstorageFeatureKind.Config>;
|
26 |
|
27 | export declare function withLocalStorage(): NgxWebstorageFeature<InternalNgxWebstorageFeatureKind.LocalStorage>;
|
28 | export declare function withSessionStorage(): NgxWebstorageFeature<InternalNgxWebstorageFeatureKind.SessionStorage>;
|