/**
 * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { AppLimitCreditRedemptionSelect, AppLimitCreditRedemptionWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AppLimitCreditRedemptionSelect, AppLimitCreditRedemptionWithRelations, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appLimitCreditRedemptionQueryKey: (id: string | number) => readonly ["applimitcreditredemption", "detail", string | number];
/**
 * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppLimitCreditRedemptionQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAppLimitCreditRedemptionQuery<S extends AppLimitCreditRedemptionSelect, TData = {
    appLimitCreditRedemption: InferSelectResult<AppLimitCreditRedemptionWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppLimitCreditRedemptionSelect>;
} & Omit<UseQueryOptions<{
    appLimitCreditRedemption: InferSelectResult<AppLimitCreditRedemptionWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits
 *
 * @example
 * ```ts
 * const data = await fetchAppLimitCreditRedemptionQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAppLimitCreditRedemptionQuery<S extends AppLimitCreditRedemptionSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppLimitCreditRedemptionSelect>;
}): Promise<{
    appLimitCreditRedemption: InferSelectResult<AppLimitCreditRedemptionWithRelations, S> | null;
}>;
/**
 * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits
 *
 * @example
 * ```ts
 * await prefetchAppLimitCreditRedemptionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAppLimitCreditRedemptionQuery<S extends AppLimitCreditRedemptionSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppLimitCreditRedemptionSelect>;
}): Promise<void>;
