55``` ts
66
77import { FirebaseApp } from ' @firebase/app-exp' ;
8- import { RemoteConfig } from ' @firebase/remote-config-types-exp' ;
9- import { LogLevel as RemoteConfigLogLevel } from ' @firebase/remote-config-types-exp' ;
10- import { Value as ValueType } from ' @firebase/remote-config-types-exp' ;
118
129// @public
1310export function activate(remoteConfig : RemoteConfig ): Promise <boolean >;
@@ -22,7 +19,10 @@ export function fetchAndActivate(remoteConfig: RemoteConfig): Promise<boolean>;
2219export function fetchConfig(remoteConfig : RemoteConfig ): Promise <void >;
2320
2421// @public
25- export function getAll(remoteConfig : RemoteConfig ): Record <string , ValueType >;
22+ export type FetchStatus = ' no-fetch-yet' | ' success' | ' failure' | ' throttle' ;
23+
24+ // @public
25+ export function getAll(remoteConfig : RemoteConfig ): Record <string , Value >;
2626
2727// @public
2828export function getBoolean(remoteConfig : RemoteConfig , key : string ): boolean ;
@@ -37,16 +37,40 @@ export function getRemoteConfig(app: FirebaseApp): RemoteConfig;
3737export function getString(remoteConfig : RemoteConfig , key : string ): string ;
3838
3939// @public
40- export function getValue(remoteConfig : RemoteConfig , key : string ): ValueType ;
40+ export function getValue(remoteConfig : RemoteConfig , key : string ): Value ;
4141
42- export { RemoteConfig }
42+ // @public
43+ export type LogLevel = ' debug' | ' error' | ' silent' ;
4344
44- export { RemoteConfigLogLevel }
45+ // @public
46+ export interface RemoteConfig {
47+ defaultConfig: {
48+ [key : string ]: string | number | boolean ;
49+ };
50+ fetchTimeMillis: number ;
51+ lastFetchStatus: FetchStatus ;
52+ settings: Settings ;
53+ }
4554
4655// @public
47- export function setLogLevel(remoteConfig : RemoteConfig , logLevel : RemoteConfigLogLevel ): void ;
56+ export function setLogLevel(remoteConfig : RemoteConfig , logLevel : LogLevel ): void ;
4857
49- export { ValueType }
58+ // @public
59+ export interface Settings {
60+ fetchTimeoutMillis: number ;
61+ minimumFetchIntervalMillis: number ;
62+ }
63+
64+ // @public
65+ export interface Value {
66+ asBoolean(): boolean ;
67+ asNumber(): number ;
68+ asString(): string ;
69+ getSource(): ValueSource ;
70+ }
71+
72+ // @public
73+ export type ValueSource = ' static' | ' default' | ' remote' ;
5074
5175
5276// (No @packageDocumentation comment for this package)
0 commit comments