import { default as React, ReactNode } from 'react'; import { FlagKey } from './flag-keys'; interface FeatureFlagContextValue { flags: Record; isLoading: boolean; isEnabled: (flagKey: FlagKey | string) => boolean; setFlag: (flagKey: string, value: boolean) => void; refreshFlags: () => Promise; } interface FeatureFlagProviderProps { children: ReactNode; /** Override default flags for testing */ initialFlags?: Record; } /** * Loads + exposes feature flag states (local or remote). */ export declare function FeatureFlagProvider({ children, initialFlags, }: FeatureFlagProviderProps): React.JSX.Element; /** * Hook to access the feature flag context. */ export declare function useFeatureFlagContext(): FeatureFlagContextValue; export {};