@rxap/config 19.3.0 → 21.0.1-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/compodoc/changelog.html +36 -0
  3. package/compodoc/dependencies.html +6 -6
  4. package/compodoc/injectables/ConfigLoaderService.html +10 -77
  5. package/compodoc/injectables/ConfigService.html +38 -42
  6. package/compodoc/interfaces/ConfigLoadOptions.html +2 -6
  7. package/compodoc/js/search/search_index.js +2 -2
  8. package/compodoc/properties.html +1 -1
  9. package/docs/documentation.json +904 -950
  10. package/docs/html/assets/hierarchy.js +1 -1
  11. package/docs/html/assets/search.js +1 -1
  12. package/docs/html/classes/ConfigLoaderService.html +2 -2
  13. package/docs/html/classes/ConfigService.html +7 -7
  14. package/docs/html/classes/ConfigTestingService.html +2 -2
  15. package/docs/html/enums/ConfigLoadMethod.html +2 -2
  16. package/docs/html/enums/ConfigLoadingStrategy.html +2 -2
  17. package/docs/html/functions/ProvideConfig.html +1 -1
  18. package/docs/html/functions/defaultConfigLoadErrorHandler.html +2 -2
  19. package/docs/html/functions/dnsLookup.html +1 -1
  20. package/docs/html/functions/dnsResolver.html +1 -1
  21. package/docs/html/functions/fetchCidContent.html +1 -1
  22. package/docs/html/functions/fetchCidContentAsJson.html +1 -1
  23. package/docs/html/functions/fetchCidContentViaHttp.html +1 -1
  24. package/docs/html/functions/fetchContentViaHttp.html +1 -1
  25. package/docs/html/functions/localPathIpfsGateway.html +1 -1
  26. package/docs/html/functions/localSubDomainIpfsGateway.html +1 -1
  27. package/docs/html/functions/raceSuccess.html +2 -2
  28. package/docs/html/functions/showConfigLoadError.html +2 -2
  29. package/docs/html/functions/storachaIpfsGateway.html +1 -1
  30. package/docs/html/functions/w3sIpfsGateway.html +1 -1
  31. package/docs/html/hierarchy.html +1 -1
  32. package/docs/html/index.html +2 -2
  33. package/docs/html/interfaces/AppsNavigationConfig.html +2 -2
  34. package/docs/html/interfaces/Config.html +2 -2
  35. package/docs/html/interfaces/ConfigLoadError.html +4 -4
  36. package/docs/html/interfaces/ConfigLoadOptions.html +8 -8
  37. package/docs/html/interfaces/LogoConfig.html +2 -2
  38. package/docs/html/interfaces/NavigationConfig.html +2 -2
  39. package/docs/html/interfaces/Oauth2Config.html +2 -2
  40. package/docs/html/interfaces/i18nConfig.html +2 -2
  41. package/docs/html/modules.html +1 -1
  42. package/docs/html/types/AnySchema.html +1 -1
  43. package/docs/html/types/ConfigLoadErrorHandler.html +2 -2
  44. package/docs/html/types/ConfigLoadErrorKind.html +2 -2
  45. package/docs/html/types/ConfigRequestOptions.html +1 -1
  46. package/docs/html/types/IpfsGatewayFunction.html +1 -1
  47. package/docs/html/types/Join.html +1 -1
  48. package/docs/html/types/LanguagesConfig.html +1 -1
  49. package/docs/html/types/Leaves.html +1 -1
  50. package/docs/html/types/NoInferType.html +1 -1
  51. package/docs/html/types/Paths.html +1 -1
  52. package/docs/html/variables/RXAP_CONFIG.html +1 -1
  53. package/docs/html/variables/defaultDnsServers.html +1 -1
  54. package/docs/html/variables/defaultIpfsGatewayServers.html +1 -1
  55. package/docs/markdown/README.md +1 -1
  56. package/docs/markdown/classes/ConfigLoaderService.md +7 -15
  57. package/docs/markdown/classes/ConfigService.md +23 -23
  58. package/docs/markdown/classes/ConfigTestingService.md +8 -8
  59. package/docs/markdown/enumerations/ConfigLoadMethod.md +6 -6
  60. package/docs/markdown/enumerations/ConfigLoadingStrategy.md +4 -4
  61. package/docs/markdown/functions/ProvideConfig.md +2 -2
  62. package/docs/markdown/functions/defaultConfigLoadErrorHandler.md +2 -2
  63. package/docs/markdown/functions/dnsLookup.md +2 -2
  64. package/docs/markdown/functions/dnsResolver.md +2 -2
  65. package/docs/markdown/functions/fetchCidContent.md +2 -2
  66. package/docs/markdown/functions/fetchCidContentAsJson.md +2 -2
  67. package/docs/markdown/functions/fetchCidContentViaHttp.md +2 -2
  68. package/docs/markdown/functions/fetchContentViaHttp.md +2 -2
  69. package/docs/markdown/functions/localPathIpfsGateway.md +2 -2
  70. package/docs/markdown/functions/localSubDomainIpfsGateway.md +2 -2
  71. package/docs/markdown/functions/raceSuccess.md +2 -2
  72. package/docs/markdown/functions/showConfigLoadError.md +2 -2
  73. package/docs/markdown/functions/storachaIpfsGateway.md +2 -2
  74. package/docs/markdown/functions/w3sIpfsGateway.md +2 -2
  75. package/docs/markdown/globals.md +2 -2
  76. package/docs/markdown/interfaces/AppsNavigationConfig.md +12 -12
  77. package/docs/markdown/interfaces/Config.md +6 -6
  78. package/docs/markdown/interfaces/ConfigLoadError.md +9 -9
  79. package/docs/markdown/interfaces/ConfigLoadOptions.md +17 -17
  80. package/docs/markdown/interfaces/LogoConfig.md +5 -5
  81. package/docs/markdown/interfaces/NavigationConfig.md +9 -9
  82. package/docs/markdown/interfaces/Oauth2Config.md +3 -3
  83. package/docs/markdown/interfaces/i18nConfig.md +4 -4
  84. package/docs/markdown/type-aliases/AnySchema.md +2 -2
  85. package/docs/markdown/type-aliases/ConfigLoadErrorHandler.md +2 -2
  86. package/docs/markdown/type-aliases/ConfigLoadErrorKind.md +2 -2
  87. package/docs/markdown/type-aliases/ConfigRequestOptions.md +2 -2
  88. package/docs/markdown/type-aliases/IpfsGatewayFunction.md +2 -2
  89. package/docs/markdown/type-aliases/Join.md +2 -2
  90. package/docs/markdown/type-aliases/LanguagesConfig.md +2 -2
  91. package/docs/markdown/type-aliases/Leaves.md +2 -2
  92. package/docs/markdown/type-aliases/NoInferType.md +2 -2
  93. package/docs/markdown/type-aliases/Paths.md +2 -2
  94. package/docs/markdown/variables/RXAP_CONFIG.md +2 -2
  95. package/docs/markdown/variables/defaultDnsServers.md +2 -2
  96. package/docs/markdown/variables/defaultIpfsGatewayServers.md +2 -2
  97. package/docs/wiki/Class.ConfigLoaderService.md +6 -14
  98. package/docs/wiki/Class.ConfigService.md +22 -22
  99. package/docs/wiki/Class.ConfigTestingService.md +7 -7
  100. package/docs/wiki/Enumeration.ConfigLoadMethod.md +5 -5
  101. package/docs/wiki/Enumeration.ConfigLoadingStrategy.md +3 -3
  102. package/docs/wiki/Function.ProvideConfig.md +1 -1
  103. package/docs/wiki/Function.defaultConfigLoadErrorHandler.md +1 -1
  104. package/docs/wiki/Function.dnsLookup.md +1 -1
  105. package/docs/wiki/Function.dnsResolver.md +1 -1
  106. package/docs/wiki/Function.fetchCidContent.md +1 -1
  107. package/docs/wiki/Function.fetchCidContentAsJson.md +1 -1
  108. package/docs/wiki/Function.fetchCidContentViaHttp.md +1 -1
  109. package/docs/wiki/Function.fetchContentViaHttp.md +1 -1
  110. package/docs/wiki/Function.localPathIpfsGateway.md +1 -1
  111. package/docs/wiki/Function.localSubDomainIpfsGateway.md +1 -1
  112. package/docs/wiki/Function.raceSuccess.md +1 -1
  113. package/docs/wiki/Function.showConfigLoadError.md +1 -1
  114. package/docs/wiki/Function.storachaIpfsGateway.md +1 -1
  115. package/docs/wiki/Function.w3sIpfsGateway.md +1 -1
  116. package/docs/wiki/Interface.AppsNavigationConfig.md +11 -11
  117. package/docs/wiki/Interface.Config.md +5 -5
  118. package/docs/wiki/Interface.ConfigLoadError.md +8 -8
  119. package/docs/wiki/Interface.ConfigLoadOptions.md +16 -16
  120. package/docs/wiki/Interface.LogoConfig.md +4 -4
  121. package/docs/wiki/Interface.NavigationConfig.md +8 -8
  122. package/docs/wiki/Interface.Oauth2Config.md +2 -2
  123. package/docs/wiki/Interface.i18nConfig.md +3 -3
  124. package/docs/wiki/TypeAlias.AnySchema.md +1 -1
  125. package/docs/wiki/TypeAlias.ConfigLoadErrorHandler.md +1 -1
  126. package/docs/wiki/TypeAlias.ConfigLoadErrorKind.md +1 -1
  127. package/docs/wiki/TypeAlias.ConfigRequestOptions.md +1 -1
  128. package/docs/wiki/TypeAlias.IpfsGatewayFunction.md +1 -1
  129. package/docs/wiki/TypeAlias.Join.md +1 -1
  130. package/docs/wiki/TypeAlias.LanguagesConfig.md +1 -1
  131. package/docs/wiki/TypeAlias.Leaves.md +1 -1
  132. package/docs/wiki/TypeAlias.NoInferType.md +1 -1
  133. package/docs/wiki/TypeAlias.Paths.md +1 -1
  134. package/docs/wiki/Variable.RXAP_CONFIG.md +1 -1
  135. package/docs/wiki/Variable.defaultDnsServers.md +1 -1
  136. package/docs/wiki/Variable.defaultIpfsGatewayServers.md +1 -1
  137. package/docs/wiki/globals.md +1 -1
  138. package/fesm2022/rxap-config.mjs +19 -22
  139. package/fesm2022/rxap-config.mjs.map +1 -1
  140. package/package.json +15 -14
  141. package/types/rxap-config.d.ts +297 -0
  142. package/index.d.ts +0 -9
  143. package/lib/config-load-error.d.ts +0 -41
  144. package/lib/config-loader.service.d.ts +0 -12
  145. package/lib/config-testing-service.d.ts +0 -12
  146. package/lib/config.d.ts +0 -41
  147. package/lib/config.service.d.ts +0 -129
  148. package/lib/provide-config.d.ts +0 -4
  149. package/lib/tokens.d.ts +0 -2
  150. package/lib/types.d.ts +0 -34
  151. package/lib/utilities.d.ts +0 -19
package/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export * from './lib/config-load-error';
2
- export * from './lib/config-loader.service';
3
- export * from './lib/config-testing-service';
4
- export * from './lib/config.service';
5
- export * from './lib/config';
6
- export * from './lib/provide-config';
7
- export * from './lib/tokens';
8
- export * from './lib/types';
9
- export * from './lib/utilities';
@@ -1,41 +0,0 @@
1
- /**
2
- * The kind of failure that happened while loading a config url.
3
- *
4
- * - `network`: `fetch()` rejected (offline, DNS, CORS without a redirect)
5
- * - `redirect`: the response is an `opaqueredirect` (only with `requestInit.redirect === 'manual'`)
6
- * - `http`: the response is not ok - `status` and `response` are available
7
- * - `parse`: the response body is not valid JSON
8
- * - `schema`: the schema validation failed
9
- */
10
- export type ConfigLoadErrorKind = 'network' | 'redirect' | 'http' | 'parse' | 'schema';
11
- export interface ConfigLoadError {
12
- kind: ConfigLoadErrorKind;
13
- url: string;
14
- /**
15
- * true if the config url is required. A required url throws after the error handler is called,
16
- * an optional url resolves with `null`.
17
- */
18
- required: boolean;
19
- status?: number;
20
- response?: Response;
21
- cause?: unknown;
22
- /**
23
- * The message the default handler would show.
24
- */
25
- message: string;
26
- }
27
- /**
28
- * Called for every failed config url request. May never resolve, e.g. if it navigates away.
29
- */
30
- export type ConfigLoadErrorHandler = (error: ConfigLoadError) => void | Promise<void>;
31
- /**
32
- * The default config load error handler. Shows the error message in an overlay and reloads the
33
- * page after 30 s for required config urls. Logs a warning for optional config urls.
34
- *
35
- * Can be used as fallback in a custom error handler for error kinds it does not handle.
36
- */
37
- export declare function defaultConfigLoadErrorHandler(error: ConfigLoadError): void;
38
- /**
39
- * Appends the message to the config error overlay and schedules a page reload in 30 s.
40
- */
41
- export declare function showConfigLoadError(message: string): void;
@@ -1,12 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { HttpClient } from '@angular/common/http';
3
- import * as i0 from "@angular/core";
4
- export declare class ConfigLoaderService {
5
- readonly http: HttpClient;
6
- readonly configs: Map<string, any>;
7
- readonly configLoading: Map<string, Observable<any>>;
8
- constructor(http: HttpClient);
9
- load$<T = any>(url: string): Promise<T>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigLoaderService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfigLoaderService>;
12
- }
@@ -1,12 +0,0 @@
1
- import { ConfigService } from './config.service';
2
- import * as i0 from "@angular/core";
3
- export declare class ConfigTestingService implements ConfigService {
4
- readonly config: Record<string, any>;
5
- clearLocalConfig(): void;
6
- set<T>(propertyPath: string, value: T): void;
7
- get<T>(propertyPath: string, defaultValue?: T): T | undefined;
8
- getOrThrow<T>(propertyPath: string): T;
9
- setLocalConfig(config: Record<string, any>): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigTestingService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfigTestingService>;
12
- }
package/lib/config.d.ts DELETED
@@ -1,41 +0,0 @@
1
- import { IconConfig } from '@rxap/utilities';
2
- export interface AppsNavigationConfig {
3
- target?: string;
4
- image?: string;
5
- label: string;
6
- href?: string;
7
- routerLink?: string[];
8
- empty?: false;
9
- hidden?: boolean;
10
- id?: string;
11
- permissions?: string[];
12
- icon?: IconConfig;
13
- }
14
- export interface LogoConfig {
15
- src?: string;
16
- width?: number;
17
- height?: number;
18
- }
19
- export interface NavigationConfig {
20
- apps?: AppsNavigationConfig[];
21
- collapsable?: boolean;
22
- pinned?: boolean;
23
- mode?: 'side' | 'over';
24
- opened?: boolean;
25
- fixedInViewport?: boolean;
26
- mobileQuery?: string;
27
- }
28
- export type LanguagesConfig = Record<string, string>;
29
- export interface i18nConfig {
30
- languages?: LanguagesConfig;
31
- defaultLanguage?: string;
32
- }
33
- export interface Oauth2Config {
34
- profileUrl?: string;
35
- }
36
- export interface Config {
37
- navigation?: NavigationConfig;
38
- logo?: LogoConfig;
39
- i18n?: i18nConfig;
40
- oauth2?: Oauth2Config;
41
- }
@@ -1,129 +0,0 @@
1
- import { Environment } from '@rxap/environment';
2
- import { ReplaySubject } from 'rxjs';
3
- import { ConfigLoadErrorHandler } from './config-load-error';
4
- import { NoInferType } from './types';
5
- import * as i0 from "@angular/core";
6
- export type AnySchema = {
7
- validateAsync: (...args: any[]) => any;
8
- };
9
- export declare enum ConfigLoadingStrategy {
10
- DEFAULT = "default",
11
- FIFO = "fifo"
12
- }
13
- export declare enum ConfigLoadMethod {
14
- FROM_URLS = "fromUrls",
15
- FROM_LOCAL_STORAGE = "fromLocalStorage",
16
- FROM_URL_PARAM = "fromUrlParam",
17
- FROM_CID = "fromCid"
18
- }
19
- export interface ConfigLoadOptions {
20
- fromUrlParam?: string | boolean;
21
- fromUrls?: boolean;
22
- fromLocalStorage?: boolean;
23
- schema?: AnySchema;
24
- url?: string | string[] | ((environment: Environment) => string | string[]);
25
- /**
26
- * static config values
27
- */
28
- static?: Record<string, any>;
29
- /**
30
- * Load additional configuration based on a CID found in a DNS TXT record.
31
- * If true, uses `location.hostname`. If a string, uses that domain.
32
- */
33
- fromDns?: string | boolean;
34
- /**
35
- * Load additional configuration directly from the given Content Identifier (CID).
36
- * This takes precedence over `fromDns` if both are provided.
37
- */
38
- fromCid?: string;
39
- fetchCidContent?: (cid: string, path?: string) => Promise<Blob | null>;
40
- ipfsGatewayServers?: Array<(cid: string) => string>;
41
- dnsServers?: string[];
42
- strategy?: ConfigLoadingStrategy;
43
- /**
44
- * Defines the order and subset of config sources to load.
45
- * If not specified, defaults to: [FROM_URLS, FROM_LOCAL_STORAGE, FROM_URL_PARAM, FROM_CID]
46
- *
47
- * Note: static config is always merged first, and Overwrites are always merged last.
48
- * Note: fromDns is not a source itself - it resolves the CID for FROM_CID.
49
- */
50
- order?: ConfigLoadMethod[];
51
- /**
52
- * Replaces the default error handling (error overlay + page reload after 30 s) for failed
53
- * config url requests. Used for the `url` / `fromUrls` source and for `SideLoad`.
54
- *
55
- * Afterwards a required url still throws and an optional url resolves with `null`. The
56
- * `onError` / `onRequestError` hooks are still called.
57
- */
58
- errorHandler?: ConfigLoadErrorHandler;
59
- /**
60
- * Passed to `fetch()` for config url requests, e.g. `{ redirect: 'manual' }`.
61
- */
62
- requestInit?: RequestInit;
63
- }
64
- export type ConfigRequestOptions = Pick<ConfigLoadOptions, 'errorHandler' | 'requestInit'>;
65
- export declare class ConfigService<Config extends Record<string, any> = Record<string, any>> {
66
- static onError: ReplaySubject<unknown>;
67
- static onRequestError: ReplaySubject<Response>;
68
- static onErrorFnc: Array<(error: any) => void>;
69
- static onRequestErrorFnc: Array<(response: Response) => void>;
70
- static Config: any;
71
- /**
72
- * Static default values for the config object.
73
- * Will be overwritten by an dynamic config file specified in
74
- * the Urls array.
75
- */
76
- static Defaults: any;
77
- /**
78
- * Any value definition in the Overwrites object will overwrite any
79
- * value form the Defaults values or dynamic config files
80
- */
81
- static Overwrites: any;
82
- static LocalStorageKey: string;
83
- /**
84
- * The errorHandler and requestInit of the last Load call. Used by SideLoad.
85
- */
86
- static RequestOptions: ConfigRequestOptions;
87
- /**
88
- * @deprecated instead use the url property of the ConfigLoadOptions
89
- */
90
- static Urls: never[];
91
- readonly config: Config;
92
- constructor(config?: any | null);
93
- /**
94
- * Used to load the app config from a remote resource.
95
- *
96
- * Promise.all([ ConfigService.Load() ])
97
- * .then(() => platformBrowserDynamic().bootstrapModule(AppModule))
98
- * .catch(err => console.error(err))
99
- *
100
- */
101
- static Load(options?: ConfigLoadOptions, environment?: Environment): Promise<void>;
102
- private static isSourceEnabled;
103
- private static loadConfigFromMethod;
104
- private static getMethodName;
105
- private static loadConfigFromUrlParam;
106
- private static loadConfigFromLocalStorage;
107
- private static loadConfigFromUrls;
108
- private static loadConfigFromCid;
109
- private static loadConfigFromDns;
110
- private static handleError;
111
- private static handleRequestError;
112
- private static loadConfig;
113
- /**
114
- * Notifies the onError/onRequestError hooks (required urls only), calls the error handler and
115
- * throws for required urls. Resolves with null for optional urls.
116
- */
117
- private static handleLoadError;
118
- private static LoadConfigDefaultFromUrlParam;
119
- static SideLoad(url: string, propertyPath: string, required?: boolean, schema?: AnySchema, options?: ConfigRequestOptions): Promise<void>;
120
- static Get<T = any, K extends Record<string, any> = Record<string, any>>(path: string, defaultValue: T | undefined, config: Record<string, any>): T;
121
- setLocalConfig(config: Config): void;
122
- clearLocalConfig(): void;
123
- get<T = any>(propertyPath: string): T | undefined;
124
- get<T = any>(propertyPath: string, defaultValue: NoInferType<T>): T;
125
- getOrThrow<T = any>(propertyPath: string): T;
126
- getOrThrow<T = any>(propertyPath: string, defaultValue: NoInferType<T>): T;
127
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService<any>, [{ optional: true; }]>;
128
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService<any>>;
129
- }
@@ -1,4 +0,0 @@
1
- export declare function ProvideConfig(config?: Record<string, unknown>): {
2
- provide: import("@angular/core").InjectionToken<unknown>;
3
- useValue: Record<string, unknown>;
4
- };
package/lib/tokens.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const RXAP_CONFIG: InjectionToken<unknown>;
package/lib/types.d.ts DELETED
@@ -1,34 +0,0 @@
1
- export declare type NoInferType<T> = [T][T extends any ? 0 : never];
2
- type Prev = [
3
- never,
4
- 0,
5
- 1,
6
- 2,
7
- 3,
8
- 4,
9
- 5,
10
- 6,
11
- 7,
12
- 8,
13
- 9,
14
- 10,
15
- 11,
16
- 12,
17
- 13,
18
- 14,
19
- 15,
20
- 16,
21
- 17,
22
- 18,
23
- 19,
24
- 20,
25
- ...0[]
26
- ];
27
- export type Join<K, P> = K extends string | number ? P extends string | number ? `${K}${'' extends P ? '' : '.'}${P}` : never : never;
28
- export type Paths<T, D extends number = 10> = [D] extends [never] ? never : T extends object ? {
29
- [K in keyof T]-?: K extends string | number ? `${K}` | Join<K, Paths<T[K], Prev[D]>> : never;
30
- }[keyof T] : '';
31
- export type Leaves<T, D extends number = 10> = [D] extends [never] ? never : T extends object ? {
32
- [K in keyof T]-?: Join<K, Leaves<T[K], Prev[D]>>;
33
- }[keyof T] : '';
34
- export {};
@@ -1,19 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- /**
3
- * Similar to Promise.race() but only resolves with the first successful promise.
4
- * It will only reject if all promises reject.
5
- */
6
- export declare function raceSuccess<T>(promises: Promise<T>[]): Promise<T>;
7
- export declare function dnsResolver(endpoint: string, name: string, type: string): Promise<string>;
8
- export declare const defaultDnsServers: string[];
9
- export declare function dnsLookup(name: string, type: string, dnsServers?: string[]): Promise<string>;
10
- export declare function fetchContentViaHttp(url: string): Observable<Blob | null>;
11
- export type IpfsGatewayFunction = (cid: string) => string;
12
- export declare const w3sIpfsGateway: IpfsGatewayFunction;
13
- export declare const storachaIpfsGateway: IpfsGatewayFunction;
14
- export declare const localPathIpfsGateway: IpfsGatewayFunction;
15
- export declare const localSubDomainIpfsGateway: IpfsGatewayFunction;
16
- export declare const defaultIpfsGatewayServers: Array<IpfsGatewayFunction>;
17
- export declare function fetchCidContentViaHttp(cid: string, path?: string, ipfsGatewayServers?: Array<IpfsGatewayFunction>): Observable<Blob | null>;
18
- export declare function fetchCidContent(cid: string, path?: string, ipfsGatewayServers?: Array<IpfsGatewayFunction>): Promise<Blob | null>;
19
- export declare function fetchCidContentAsJson(cid: string, path?: string, _fetchCidContent?: typeof fetchCidContent, ipfsGatewayServers?: Array<IpfsGatewayFunction>): Promise<any | null>;