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