import { AstroGlobal } from 'astro'; import { a as TogglyClient } from '../index-B3YY1P83.js'; import '@ops-ai/toggly-hooks-types'; import '@ops-ai/toggly-local-gates'; /** * Toggly Server Utilities for Astro * * Helper functions for server-side feature flag evaluation */ /** * Get Toggly client from Astro global * * @param Astro - Astro global object * @returns TogglyClient instance * @throws Error if Toggly client is not initialized */ declare function getTogglyFromAstroGlobal(Astro: AstroGlobal): TogglyClient; /** * Higher-order function for page-level feature gating * * @param featureKey - Feature flag key to check * @param Astro - Astro global object * @returns Boolean indicating if feature is enabled */ declare function withFeatureFlag(featureKey: string, Astro: AstroGlobal): Promise; /** * Check if any of the provided feature flags are enabled * * @param featureKeys - Array of feature flag keys to check * @param Astro - Astro global object * @returns Boolean indicating if any feature is enabled */ declare function anyFeatureEnabled(featureKeys: string[], Astro: AstroGlobal): Promise; /** * Check if all of the provided feature flags are enabled * * @param featureKeys - Array of feature flag keys to check * @param Astro - Astro global object * @returns Boolean indicating if all features are enabled */ declare function allFeaturesEnabled(featureKeys: string[], Astro: AstroGlobal): Promise; export { allFeaturesEnabled, anyFeatureEnabled, getTogglyFromAstroGlobal, withFeatureFlag };