/**
 * Custom query hook for appPermissionsGetPaddedMask
 * @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 appPermissionsGetPaddedMaskQueryKey = customQueryKeys.appPermissionsGetPaddedMask;
export function useAppPermissionsGetPaddedMaskQuery(params) {
    const variables = params?.variables ?? {};
    const { variables: _variables, ...queryOptions } = params ?? {};
    void _variables;
    return useQuery({
        queryKey: appPermissionsGetPaddedMaskQueryKey(variables),
        queryFn: () => getClient().query.appPermissionsGetPaddedMask(variables).unwrap(),
        ...queryOptions,
    });
}
/**
 * Fetch appPermissionsGetPaddedMask without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchAppPermissionsGetPaddedMaskQuery({ variables: { mask } });
 * ```
 */
export async function fetchAppPermissionsGetPaddedMaskQuery(params) {
    const variables = params?.variables ?? {};
    return getClient().query.appPermissionsGetPaddedMask(variables).unwrap();
}
/**
 * Prefetch appPermissionsGetPaddedMask for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchAppPermissionsGetPaddedMaskQuery(queryClient, { variables: { mask } });
 * ```
 */
export async function prefetchAppPermissionsGetPaddedMaskQuery(queryClient, params) {
    const variables = params?.variables ?? {};
    await queryClient.prefetchQuery({
        queryKey: appPermissionsGetPaddedMaskQueryKey(variables),
        queryFn: () => getClient().query.appPermissionsGetPaddedMask(variables).unwrap(),
    });
}
