import * as React from 'react'; import type { IFeatures } from '../../config'; /** * Type alias for feature flags, extending from IFeatures interface. */ export type FeatureFlags = IFeatures; /** * Creates a React Context for feature flags. * Defaults to `SETTINGS.feature` if no provider is found in the component tree. */ export declare const FeatureFlagsContext: React.Context; /** * A context provider component that merges the global feature flags * from `SETTINGS.feature` with any feature flags passed in via props. * * @param {Object} props * @param {FeatureFlags} [props.features] - Feature flags to merge with the global flags. * @param {React.ReactNode} props.children - Components that will consume the merged flags. * @returns {JSX.Element} - The provider that holds merged feature flags in context. */ export declare function FeaturesProvider({ features, children, }: { features?: FeatureFlags; children: React.ReactNode; }): JSX.Element;