/**
 * Single item query hook for CompositeType
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { CompositeTypeSelect, CompositeTypeWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { CompositeTypeSelect, CompositeTypeWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const compositeTypeQueryKey: (id: string | number) => readonly ["compositetype", "detail", string | number];
/**
 * Query hook for fetching a single CompositeType
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useCompositeTypeQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useCompositeTypeQuery<S extends CompositeTypeSelect, TData = {
    compositeType: InferSelectResult<CompositeTypeWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, CompositeTypeSelect>;
} & Omit<UseQueryOptions<{
    compositeType: InferSelectResult<CompositeTypeWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single CompositeType without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchCompositeTypeQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchCompositeTypeQuery<S extends CompositeTypeSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, CompositeTypeSelect>;
}): Promise<{
    compositeType: InferSelectResult<CompositeTypeWithRelations, S> | null;
}>;
/**
 * Prefetch a single CompositeType for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchCompositeTypeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchCompositeTypeQuery<S extends CompositeTypeSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, CompositeTypeSelect>;
}): Promise<void>;
