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