/** * React Query Mutation Hook for Evaluating All Feature Flags * Gets all feature flag values at once for the given context */ import { createApiMutation } from '../../../hooks/factories'; import { type EvaluateAllFeatureFlagsPayload } from './evaluateAllFeatureFlags'; import type { EvaluateAllFlagsResponse, ServiceOptions, FeatureFlagErrorResponse } from '@plyaz/types/api'; import type { EndpointsList } from '@/api/endpoints'; /** * Hook for evaluating all feature flags at once * * @param serviceOptions - Service options * @param mutationOptions - React Query mutation options * @returns React Query mutation result * * @example * ```typescript * // Basic usage - load all flags on app init * const { mutateAsync, data } = useEvaluateAllFeatureFlags(); * * useEffect(() => { * mutateAsync({ context: userContext }) * .then(flags => setFeatureFlags(flags.data)); * }, []); * * // Access specific flag * if (data?.data?.['new-dashboard']?.isEnabled) { * // Show new dashboard * } * ``` */ export declare function useEvaluateAllFeatureFlags(serviceOptions?: ServiceOptions, mutationOptions?: Parameters, FeatureFlagErrorResponse, EvaluateAllFeatureFlagsPayload, unknown, TEndpoints>>>[1]): ReturnType, FeatureFlagErrorResponse, EvaluateAllFeatureFlagsPayload, unknown, TEndpoints>>>; //# sourceMappingURL=useEvaluateAllFeatureFlags.d.ts.map