/**
 * 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 { ListSelectionConfig } from '../selection';
import type { AppLimitCreditRedemptionSelect, AppLimitCreditRedemptionWithRelations, AppLimitCreditRedemptionFilter, AppLimitCreditRedemptionOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { AppLimitCreditRedemptionSelect, AppLimitCreditRedemptionWithRelations, AppLimitCreditRedemptionFilter, AppLimitCreditRedemptionOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appLimitCreditRedemptionsQueryKey: (variables?: object) => readonly ["applimitcreditredemption", "list", object];
/**
 * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppLimitCreditRedemptionsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useAppLimitCreditRedemptionsQuery<S extends AppLimitCreditRedemptionSelect, TData = {
    appLimitCreditRedemptions: ConnectionResult<InferSelectResult<AppLimitCreditRedemptionWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppLimitCreditRedemptionFilter, AppLimitCreditRedemptionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitCreditRedemptionSelect>;
} & Omit<UseQueryOptions<{
    appLimitCreditRedemptions: ConnectionResult<InferSelectResult<AppLimitCreditRedemptionWithRelations, S>>;
}, 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 fetchAppLimitCreditRedemptionsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchAppLimitCreditRedemptionsQuery<S extends AppLimitCreditRedemptionSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppLimitCreditRedemptionFilter, AppLimitCreditRedemptionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitCreditRedemptionSelect>;
}): Promise<{
    appLimitCreditRedemptions: ConnectionResult<InferSelectResult<AppLimitCreditRedemptionWithRelations, S>>;
}>;
/**
 * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits
 *
 * @example
 * ```ts
 * await prefetchAppLimitCreditRedemptionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchAppLimitCreditRedemptionsQuery<S extends AppLimitCreditRedemptionSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppLimitCreditRedemptionFilter, AppLimitCreditRedemptionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitCreditRedemptionSelect>;
}): Promise<void>;
