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