/**
 * Tracks per-actor usage counts against configurable maximum limits
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appLimitQueryKey: (id: string | number) => readonly ["applimit", "detail", string | number];
/**
 * Tracks per-actor usage counts against configurable maximum limits
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppLimitQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAppLimitQuery<S extends AppLimitSelect, TData = {
    appLimit: InferSelectResult<AppLimitWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppLimitSelect>;
} & Omit<UseQueryOptions<{
    appLimit: InferSelectResult<AppLimitWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Tracks per-actor usage counts against configurable maximum limits
 *
 * @example
 * ```ts
 * const data = await fetchAppLimitQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAppLimitQuery<S extends AppLimitSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppLimitSelect>;
}): Promise<{
    appLimit: InferSelectResult<AppLimitWithRelations, S> | null;
}>;
/**
 * Tracks per-actor usage counts against configurable maximum limits
 *
 * @example
 * ```ts
 * await prefetchAppLimitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAppLimitQuery<S extends AppLimitSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppLimitSelect>;
}): Promise<void>;
