/**
 * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown)
 * @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 { OrgLimitAggregateSelect, OrgLimitAggregateWithRelations, OrgLimitAggregateFilter, OrgLimitAggregateOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { OrgLimitAggregateSelect, OrgLimitAggregateWithRelations, OrgLimitAggregateFilter, OrgLimitAggregateOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const orgLimitAggregatesQueryKey: (variables?: object) => readonly ["orglimitaggregate", "list", object];
/**
 * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown)
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useOrgLimitAggregatesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useOrgLimitAggregatesQuery<S extends OrgLimitAggregateSelect, TData = {
    orgLimitAggregates: ConnectionResult<InferSelectResult<OrgLimitAggregateWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgLimitAggregateFilter, OrgLimitAggregateOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgLimitAggregateSelect>;
} & Omit<UseQueryOptions<{
    orgLimitAggregates: ConnectionResult<InferSelectResult<OrgLimitAggregateWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown)
 *
 * @example
 * ```ts
 * const data = await fetchOrgLimitAggregatesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchOrgLimitAggregatesQuery<S extends OrgLimitAggregateSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgLimitAggregateFilter, OrgLimitAggregateOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgLimitAggregateSelect>;
}): Promise<{
    orgLimitAggregates: ConnectionResult<InferSelectResult<OrgLimitAggregateWithRelations, S>>;
}>;
/**
 * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown)
 *
 * @example
 * ```ts
 * await prefetchOrgLimitAggregatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchOrgLimitAggregatesQuery<S extends OrgLimitAggregateSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgLimitAggregateFilter, OrgLimitAggregateOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgLimitAggregateSelect>;
}): Promise<void>;
