1 | import { StorageStrategy } from '../core/interfaces/storageStrategy';
|
2 | import { Subject } from 'rxjs';
|
3 | import * as i0 from "@angular/core";
|
4 | export declare const InvalidStrategyError = "invalid_strategy";
|
5 | export declare class StrategyIndex {
|
6 | protected strategies: StorageStrategy<any>[];
|
7 | static index: {
|
8 | [name: string]: StorageStrategy<any>;
|
9 | };
|
10 | readonly registration$: Subject<string>;
|
11 | constructor(strategies: StorageStrategy<any>[]);
|
12 | static get(name: string): StorageStrategy<any>;
|
13 | static set(name: string, strategy: any): void;
|
14 | static clear(name?: string): void;
|
15 | static isStrategyRegistered(name: string): boolean;
|
16 | static hasRegistredStrategies(): boolean;
|
17 | getStrategy(name: string): StorageStrategy<any>;
|
18 | indexStrategies(): void;
|
19 | indexStrategy(name: string, overrideIfExists?: boolean): StorageStrategy<any>;
|
20 | register(name: string, strategy: StorageStrategy<any>, overrideIfExists?: boolean): void;
|
21 | static ɵfac: i0.ɵɵFactoryDeclaration<StrategyIndex, [{ optional: true; }]>;
|
22 | static ɵprov: i0.ɵɵInjectableDeclaration<StrategyIndex>;
|
23 | }
|
24 | export { StorageStrategy };
|