react-azure-config
Version:
🚀 The Ultimate Multi-App Configuration Library! CRITICAL BUG FIXES: Prefixed environment keys no longer sent to Azure. Complete architectural redesign with bulletproof fallback system. Enterprise-grade Azure integration and monorepo support.
47 lines • 1.54 kB
TypeScript
import type { AzureConfigOptions, ConfigurationValue } from './types';
export declare class RuntimeConfigurationClient {
private cache;
private options;
private azureClient;
private serviceUrl;
private appId;
constructor(options: AzureConfigOptions);
private buildConfigEndpoint;
private buildConfigValueEndpoint;
private buildRefreshEndpoint;
private buildCacheKey;
getConfiguration(): Promise<ConfigurationValue>;
getValue<T = unknown>(key: string): Promise<T | undefined>;
refreshConfiguration(): Promise<void>;
private fetchFromService;
private getEnvironmentFallback;
private transformEnvironmentKey;
private getEnvironmentValue;
getEnvironment(): string;
getAppId(): string | undefined;
getCacheStats(): {
memory: {
size: number;
maxSize: number;
ttl: number;
entries: {
key: string;
source: string;
expires: number;
isExpired: boolean;
}[];
};
localStorage: {
totalKeys: number;
storageUsed: number;
} | {
error: string;
} | null;
config: import("./types").CacheConfig;
};
isUsingEmbeddedService(): boolean;
checkServiceHealth(): Promise<any>;
getServiceUrl(): string;
}
export declare const createRuntimeConfigClient: (options: AzureConfigOptions) => RuntimeConfigurationClient;
//# sourceMappingURL=runtime-config-client.d.ts.map