import { ExecutionResult } from 'react-apollo'; import { IsFeatureActiveQuery, SetUserFeatureToggleMutation } from '../../../graphql-schema'; export declare const IS_FEATURE_ACTIVE: any; export declare const SET_USER_FEATURE_TOGGLE: any; /** * Helper hook for storing features' data instead of LocalStorage or Cookies * @param withOptimisticSuccessResponse - if true, then right after executing the mutation, * we will update the cache with optimistic response, so that the UI will be updated immediately */ export declare const useToggleFeature: (name: string, withOptimisticSuccessResponse?: boolean) => (value?: boolean | undefined, expiresAt?: Date | undefined) => Promise>; declare type FetchPolicies = 'cache-first' | 'cache-and-network' | 'network-only' | 'cache-only' | 'no-cache' | 'standby'; export declare const useIsFeatureActive: (name: string, skip?: boolean | undefined, fetchPolicy?: FetchPolicies | undefined, userId?: number | undefined) => readonly [boolean | null | undefined, boolean, boolean, (variables?: import("../../../graphql-schema").Exact<{ name: string; userId?: import("../../../graphql-schema").InputMaybe | undefined; }> | undefined) => Promise>]; export {}; //# sourceMappingURL=useToggleFeature.d.ts.map