import { Ref } from 'vue'; import { V as VariantResult } from '../../index-B3YY1P83.js'; import '@ops-ai/toggly-hooks-types'; import '@ops-ai/toggly-local-gates'; /** * Vue Composables for Toggly */ /** * Evaluate after reading the stores that can change a local gate result. * The tuple keeps both reads in Vue's computed dependency graph while the * returned value remains the evaluator's boolean (or other result). */ declare function evaluateWithDefinitionDependencies(flags: Readonly>, localGatesRevision: Readonly>, evaluate: () => T): T; /** Evaluate a client-side gate while tracking definition and local-gate updates. */ declare function useGateEvaluation(evaluate: () => boolean): Readonly>; /** @internal Preserve the SSR loading snapshot until the island mounts. */ declare function useTogglyReady(): Readonly>; /** * Hook to check if a feature flag is enabled (includes local post-filter gates). */ declare function useFeatureFlag(flagKey: string, defaultValue?: boolean): { enabled: Readonly>; isReady: Readonly>; }; /** * Hook to check if multiple feature flags are enabled (includes local post-filter gates). */ declare function useFeatureGate(flagKeys: string[], requirement?: 'all' | 'any', negate?: boolean): { enabled: Readonly>; isReady: Readonly>; }; /** * Composable for the current variant assignment of a feature (requires enableVariants in config). */ declare function useVariant(featureKey: string): Readonly>; export { evaluateWithDefinitionDependencies, useFeatureFlag, useFeatureGate, useGateEvaluation, useTogglyReady, useVariant };