/**
 * Custom query hook for requireStepUp
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { useQuery } from '@tanstack/react-query';
import { getClient } from '../client';
import { customQueryKeys } from '../query-keys';
/** Query key factory - re-exported from query-keys.ts */
export const requireStepUpQueryKey = customQueryKeys.requireStepUp;
export function useRequireStepUpQuery(params) {
    const variables = params?.variables ?? {};
    const { variables: _variables, ...queryOptions } = params ?? {};
    void _variables;
    return useQuery({
        queryKey: requireStepUpQueryKey(variables),
        queryFn: () => getClient().query.requireStepUp(variables).unwrap(),
        ...queryOptions,
    });
}
/**
 * Fetch requireStepUp without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchRequireStepUpQuery({ variables: { stepUpType } });
 * ```
 */
export async function fetchRequireStepUpQuery(params) {
    const variables = params?.variables ?? {};
    return getClient().query.requireStepUp(variables).unwrap();
}
/**
 * Prefetch requireStepUp for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchRequireStepUpQuery(queryClient, { variables: { stepUpType } });
 * ```
 */
export async function prefetchRequireStepUpQuery(queryClient, params) {
    const variables = params?.variables ?? {};
    await queryClient.prefetchQuery({
        queryKey: requireStepUpQueryKey(variables),
        queryFn: () => getClient().query.requireStepUp(variables).unwrap(),
    });
}
