import * as React from 'react'; import type { FeatureFlags } from './FeatureContext'; interface FeatureProps { feature: keyof FeatureFlags; children?: React.ReactNode; render?: React.ReactNode; } /** * Renders content conditionally based on the specified feature flag. * * @param {Object} props - The properties for the Feature component. * @param {keyof FeatureFlags} props.feature - The name of the feature flag to check. * @param {React.ReactNode} [props.children] - The content to render if the feature is enabled. * @param {React.ReactNode} [props.render=children] - Optional custom render content; defaults to `children`. * * @returns {JSX.Element | null} - The rendered content if the feature is enabled; otherwise, `null`. * * @example * // Example usage with children * * * * * @example * // Example usage with a custom render prop * } * /> */ export declare function Feature({ feature, children, render }: FeatureProps): JSX.Element | null; /** * An alias of the `` component. * Renders the provided content if the specified feature is enabled. * * @example * * * */ export declare function IfFeatureEnabled({ feature, children, render }: FeatureProps): JSX.Element | null; /** * Higher-order function to wrap a component with a feature flag check. * Ensures that the component only renders if the specified feature is enabled. * * @template Props * @param {keyof FeatureFlags} feature - The name of the feature flag to check. * @returns {(Component: React.ComponentType) => React.ComponentType} - * A higher-order component (HOC) that conditionally renders the wrapped component. * * @example * // Example usage * const EnhancedComponent = withFeature('newFeature')(MyComponent); * * ; */ export declare function withFeature(feature: keyof FeatureFlags): (Component: React.ComponentType) => React.ComponentType; export {};