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