/**
 * Append-only ledger of credit grants that automatically update limit ceilings
 * @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 { AppLimitCreditSelect, AppLimitCreditWithRelations, AppLimitCreditFilter, AppLimitCreditOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { AppLimitCreditSelect, AppLimitCreditWithRelations, AppLimitCreditFilter, AppLimitCreditOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appLimitCreditsQueryKey: (variables?: object) => readonly ["applimitcredit", "list", object];
/**
 * Append-only ledger of credit grants that automatically update limit ceilings
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppLimitCreditsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useAppLimitCreditsQuery<S extends AppLimitCreditSelect, TData = {
    appLimitCredits: ConnectionResult<InferSelectResult<AppLimitCreditWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppLimitCreditFilter, AppLimitCreditOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitCreditSelect>;
} & Omit<UseQueryOptions<{
    appLimitCredits: ConnectionResult<InferSelectResult<AppLimitCreditWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Append-only ledger of credit grants that automatically update limit ceilings
 *
 * @example
 * ```ts
 * const data = await fetchAppLimitCreditsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchAppLimitCreditsQuery<S extends AppLimitCreditSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppLimitCreditFilter, AppLimitCreditOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitCreditSelect>;
}): Promise<{
    appLimitCredits: ConnectionResult<InferSelectResult<AppLimitCreditWithRelations, S>>;
}>;
/**
 * Append-only ledger of credit grants that automatically update limit ceilings
 *
 * @example
 * ```ts
 * await prefetchAppLimitCreditsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchAppLimitCreditsQuery<S extends AppLimitCreditSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppLimitCreditFilter, AppLimitCreditOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitCreditSelect>;
}): Promise<void>;
