/**
 * Single item query hook for ViewGrant
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { ViewGrantSelect, ViewGrantWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ViewGrantSelect, ViewGrantWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const viewGrantQueryKey: (id: string | number) => readonly ["viewgrant", "detail", string | number];
/**
 * Query hook for fetching a single ViewGrant
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useViewGrantQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useViewGrantQuery<S extends ViewGrantSelect, TData = {
    viewGrant: InferSelectResult<ViewGrantWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ViewGrantSelect>;
} & Omit<UseQueryOptions<{
    viewGrant: InferSelectResult<ViewGrantWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single ViewGrant without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchViewGrantQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchViewGrantQuery<S extends ViewGrantSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ViewGrantSelect>;
}): Promise<{
    viewGrant: InferSelectResult<ViewGrantWithRelations, S> | null;
}>;
/**
 * Prefetch a single ViewGrant for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchViewGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchViewGrantQuery<S extends ViewGrantSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ViewGrantSelect>;
}): Promise<void>;
