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