import { Construct } from 'constructs'; /** Checks if the given feature is enabled or not. * * The toggle configuration is stored in context section of json file. * It returns true if the value is 'true'. All other values are interpreted as 'false'. * If no toggle is found, it returns the given fallback (default is false); * * The key of json context should include the ticket number. * * Example json * \{ * context: \{ * "rioclaid-1234-awesomeFeatureToggle": "true" * \} * \} * * @param context - Either the projen project or a cdk construct. Used to look up the json config. * @param toggleName - Name of the feature toggle. (example: rioclaid-1234-awesomeFeatureToggle) * @param fallback - Default return value if no configuration for the toggle exist. * @deprecated - Will be removed in the next major version */ export declare function isToggleEnabled(context: Construct, toggleName: string, fallback?: boolean): boolean;