import * as React from "react"; import type { clutch as IClutch } from "@clutch-sh/api"; declare const FEATURE_FLAG_POLL_RATE: number; export interface FeatureFlags { [name: string]: IClutch.featureflag.v1.IFlag; } declare const featureFlags: () => Promise; interface SimpleFeatureFlagProps { /** The name of the feature flag to lookup */ feature: string; /** A simple feature flag component */ children: React.ReactElement | React.ReactElement[]; } interface SimpleFeatureFlagStateProps { /** Children that will be rendered if the feature is on/off */ children: React.ReactNode; } interface SimpleFeatureEnabledProps { /** The name of the feature flag to lookup */ feature: string; } declare const FeatureOn: ({ children }: SimpleFeatureFlagStateProps) => JSX.Element; declare const FeatureOff: ({ children }: SimpleFeatureFlagStateProps) => JSX.Element; declare const checkFeatureEnabled: ({ feature }: SimpleFeatureEnabledProps) => boolean; /** * A feature flag wrapper that evaluates a binary value of a specified flag to determine * if it's children should be shown. */ declare const SimpleFeatureFlag: ({ feature, children }: SimpleFeatureFlagProps) => JSX.Element; export { FEATURE_FLAG_POLL_RATE, featureFlags, checkFeatureEnabled, FeatureOff, FeatureOn, SimpleFeatureFlag, }; //# sourceMappingURL=flags.d.ts.map