/**
 * 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 { OrgLimitAggregateSelect, OrgLimitAggregateWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { OrgLimitAggregateSelect, OrgLimitAggregateWithRelations, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const orgLimitAggregateQueryKey: (id: string | number) => readonly ["orglimitaggregate", "detail", string | number];
/**
 * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown)
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useOrgLimitAggregateQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useOrgLimitAggregateQuery<S extends OrgLimitAggregateSelect, TData = {
    orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgLimitAggregateSelect>;
} & Omit<UseQueryOptions<{
    orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown)
 *
 * @example
 * ```ts
 * const data = await fetchOrgLimitAggregateQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchOrgLimitAggregateQuery<S extends OrgLimitAggregateSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgLimitAggregateSelect>;
}): Promise<{
    orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S> | null;
}>;
/**
 * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown)
 *
 * @example
 * ```ts
 * await prefetchOrgLimitAggregateQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchOrgLimitAggregateQuery<S extends OrgLimitAggregateSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgLimitAggregateSelect>;
}): Promise<void>;
