/**
 * 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 { OrgLimitCreditSelect, OrgLimitCreditWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { OrgLimitCreditSelect, OrgLimitCreditWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const orgLimitCreditQueryKey: (id: string | number) => readonly ["orglimitcredit", "detail", string | number];
/**
 * Append-only ledger of credit grants that automatically update limit ceilings
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useOrgLimitCreditQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useOrgLimitCreditQuery<S extends OrgLimitCreditSelect, TData = {
    orgLimitCredit: InferSelectResult<OrgLimitCreditWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgLimitCreditSelect>;
} & Omit<UseQueryOptions<{
    orgLimitCredit: InferSelectResult<OrgLimitCreditWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Append-only ledger of credit grants that automatically update limit ceilings
 *
 * @example
 * ```ts
 * const data = await fetchOrgLimitCreditQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchOrgLimitCreditQuery<S extends OrgLimitCreditSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgLimitCreditSelect>;
}): Promise<{
    orgLimitCredit: InferSelectResult<OrgLimitCreditWithRelations, S> | null;
}>;
/**
 * Append-only ledger of credit grants that automatically update limit ceilings
 *
 * @example
 * ```ts
 * await prefetchOrgLimitCreditQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchOrgLimitCreditQuery<S extends OrgLimitCreditSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgLimitCreditSelect>;
}): Promise<void>;
