/**
 * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appAchievementQueryKey: (id: string | number) => readonly ["appachievement", "detail", string | number];
/**
 * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppAchievementQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAppAchievementQuery<S extends AppAchievementSelect, TData = {
    appAchievement: InferSelectResult<AppAchievementWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppAchievementSelect>;
} & Omit<UseQueryOptions<{
    appAchievement: InferSelectResult<AppAchievementWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually
 *
 * @example
 * ```ts
 * const data = await fetchAppAchievementQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAppAchievementQuery<S extends AppAchievementSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppAchievementSelect>;
}): Promise<{
    appAchievement: InferSelectResult<AppAchievementWithRelations, S> | null;
}>;
/**
 * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually
 *
 * @example
 * ```ts
 * await prefetchAppAchievementQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAppAchievementQuery<S extends AppAchievementSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppAchievementSelect>;
}): Promise<void>;
