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