import { type ComputedRef, type MaybeRef, type MaybeRefOrGetter } from 'vue'; import { type FeatureDefinition, type FeatureEvaluationContext, type FeatureResult, type ReleaseStage } from './core'; export interface UseFeatureResult { enabled: ComputedRef; disabled: ComputedRef; stage: ComputedRef; eligible: ComputedRef; reason: ComputedRef; result: ComputedRef; } /** Vue adapter for the headless feature evaluator. */ export declare function useFeature(feature: MaybeRef): UseFeatureResult; /** Provides the current actor context to the headless evaluator. */ export declare function useFeatureEvaluationContext(): ComputedRef; export type FeaturePageGateState = 'loading' | 'enabled' | 'unavailable' | 'upgrade' | 'error'; /** * Page-level capability state for a catalogue feature at the current location. * * `loading` until the flags loaded for THIS location are current, so a stale * result from the previous location never enables a page. A failed flag load * is `error` rather than "off". Premium features that are off prompt an * upgrade; every other disabled feature (beta, off) is `unavailable`. */ export declare function useFeaturePageGate(featureKey: MaybeRefOrGetter): { state: ComputedRef; feature: ComputedRef; dbName: ComputedRef; result: ComputedRef; retry: () => Promise; }; /** * Evaluates a catalogue feature with the same rules as `useFeature`, for * non-component callers such as the navigation menu. Unknown keys are disabled. */ export declare function evaluatePortalFeature(featureKey: string): FeatureResult; /** A premium plan switches the capability flags on, so the flag alone decides access. */ export declare function isPortalFeatureFlagOn(featureKey: string | undefined): boolean;