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