/**
 * List 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 { ListSelectionConfig } from '../selection';
import type { TableGrantSelect, TableGrantWithRelations, TableGrantFilter, TableGrantOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { TableGrantSelect, TableGrantWithRelations, TableGrantFilter, TableGrantOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const tableGrantsQueryKey: (variables?: object) => readonly ["tablegrant", "list", object];
/**
 * Query hook for fetching TableGrant list
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useTableGrantsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useTableGrantsQuery<S extends TableGrantSelect, TData = {
    tableGrants: ConnectionResult<InferSelectResult<TableGrantWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, TableGrantFilter, TableGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TableGrantSelect>;
} & Omit<UseQueryOptions<{
    tableGrants: ConnectionResult<InferSelectResult<TableGrantWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch TableGrant list without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchTableGrantsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchTableGrantsQuery<S extends TableGrantSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, TableGrantFilter, TableGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TableGrantSelect>;
}): Promise<{
    tableGrants: ConnectionResult<InferSelectResult<TableGrantWithRelations, S>>;
}>;
/**
 * Prefetch TableGrant list for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchTableGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchTableGrantsQuery<S extends TableGrantSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, TableGrantFilter, TableGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TableGrantSelect>;
}): Promise<void>;
