UNPKG

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.

39 lines • 1.49 kB
import type { ConfigurationValue } from '../types'; export interface ResolutionResult<T = unknown> { found: boolean; value?: T; resolvedKey?: string; strategy: string; attemptedKeys: string[]; } export type ResolutionStrategy<T = unknown> = (requestedKey: string, config: ConfigurationValue, appId?: string) => ResolutionResult<T>; export declare class AppAwareClientResolver { private strategies; constructor(); private initializeDefaultStrategies; addStrategy(name: string, strategyFn: ResolutionStrategy): void; resolve<T = unknown>(requestedKey: string, config: ConfigurationValue, appId?: string): ResolutionResult<T>; private directMatch; private lowercaseMatch; private nestedPropertyMatch; private appPrefixRemovalMatch; private underscoreToDotMatch; private transformationVariantsMatch; private partialMatch; private fuzzyMatch; private getNestedProperty; private similarityScore; private levenshteinDistance; private getAllAttemptedKeys; getDebugInfo<T>(requestedKey: string, config: ConfigurationValue, appId?: string): { requestedKey: string; configKeys: string[]; strategies: Array<{ name: string; result: ResolutionResult<T>; }>; }; } export declare const globalClientResolver: AppAwareClientResolver; export declare function createAppAwareResolver(): AppAwareClientResolver; //# sourceMappingURL=app-aware-resolver.d.ts.map