import { FeatureInterface } from '../../api/cloud/FeatureApi'; import { State } from '../../shared/State'; export type Feature = { /** * Get all features * @returns {Promise} a promise that resolves to an array of feature objects */ getFeatures(): Promise; /** * Check if feature is available * @param {string} featureId feature id (e.g. 'service-accounts') * @returns {Promise} a promise that resolves to true if the feature is available and to false otherwise */ hasFeature(featureId: string): Promise; }; declare const _default: (state: State) => Feature; export default _default; /** * Get all features * @returns {Promise} a promise that resolves to an array of feature objects */ export declare function getFeatures({ state, }: { state: State; }): Promise; /** * Check if feature is available * @param {string} featureId feature id (e.g. 'service-accounts') * @returns {Promise} a promise that resolves to true if the feature is available and to false otherwise */ export declare function hasFeature({ featureId, state, }: { featureId: string; state: State; }): Promise; //# sourceMappingURL=FeatureOps.d.ts.map