/**
 * Single item 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 { FieldSelect, FieldWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { FieldSelect, FieldWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const fieldQueryKey: (id: string | number) => readonly ["field", "detail", string | number];
/**
 * Query hook for fetching a single Field
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useFieldQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useFieldQuery<S extends FieldSelect, TData = {
    field: InferSelectResult<FieldWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, FieldSelect>;
} & Omit<UseQueryOptions<{
    field: InferSelectResult<FieldWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single Field without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchFieldQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchFieldQuery<S extends FieldSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, FieldSelect>;
}): Promise<{
    field: InferSelectResult<FieldWithRelations, S> | null;
}>;
/**
 * Prefetch a single Field for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchFieldQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchFieldQuery<S extends FieldSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, FieldSelect>;
}): Promise<void>;
