import { ReactNode } from 'react';
import { FeatureFlagContextValue, FeatureFlagProviderConfig } from './types';
export interface FeatureFlagProviderProps extends FeatureFlagProviderConfig {
children: ReactNode;
}
/**
* FeatureFlagProvider — manages feature flag state for UI components.
*
* Evaluates feature flags against the backend for the given workspace context.
* When workspaceId is null (not in a workspace), flags are not fetched and
* all flags return the default-allow value (true).
*
* @example
* ```tsx
* // In your app shell
*
*
*
*
* // In components
* const { isEnabled } = useFeatureFlags();
* if (isEnabled('new-dashboard')) {
* return ;
* }
* ```
*/
export declare function FeatureFlagProvider({ children, workspaceId, gateway, flagKeys, refreshInterval, // 5 minutes
staleTime, // 5 minutes
debug, defaultEnabled, }: FeatureFlagProviderProps): import("react/jsx-runtime").JSX.Element;
/**
* Hook to access the feature flag context.
*
* @throws Error if used outside a FeatureFlagProvider.
*
* @example
* ```tsx
* const { isEnabled, getValue, isLoading } = useFeatureFlags();
*
* if (isLoading) return ;
*
* if (isEnabled('new-dashboard')) {
* return ;
* }
* ```
*/
export declare function useFeatureFlags(): FeatureFlagContextValue;
//# sourceMappingURL=FeatureFlagProvider.d.ts.map