/**
 * Redeemable credit codes managed by admins with the add_credits permission
 * @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 { AppLimitCreditCodeSelect, AppLimitCreditCodeWithRelations, AppLimitCreditCodeFilter, AppLimitCreditCodeOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { AppLimitCreditCodeSelect, AppLimitCreditCodeWithRelations, AppLimitCreditCodeFilter, AppLimitCreditCodeOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appLimitCreditCodesQueryKey: (variables?: object) => readonly ["applimitcreditcode", "list", object];
/**
 * Redeemable credit codes managed by admins with the add_credits permission
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppLimitCreditCodesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useAppLimitCreditCodesQuery<S extends AppLimitCreditCodeSelect, TData = {
    appLimitCreditCodes: ConnectionResult<InferSelectResult<AppLimitCreditCodeWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppLimitCreditCodeFilter, AppLimitCreditCodeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitCreditCodeSelect>;
} & Omit<UseQueryOptions<{
    appLimitCreditCodes: ConnectionResult<InferSelectResult<AppLimitCreditCodeWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Redeemable credit codes managed by admins with the add_credits permission
 *
 * @example
 * ```ts
 * const data = await fetchAppLimitCreditCodesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchAppLimitCreditCodesQuery<S extends AppLimitCreditCodeSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppLimitCreditCodeFilter, AppLimitCreditCodeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitCreditCodeSelect>;
}): Promise<{
    appLimitCreditCodes: ConnectionResult<InferSelectResult<AppLimitCreditCodeWithRelations, S>>;
}>;
/**
 * Redeemable credit codes managed by admins with the add_credits permission
 *
 * @example
 * ```ts
 * await prefetchAppLimitCreditCodesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchAppLimitCreditCodesQuery<S extends AppLimitCreditCodeSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppLimitCreditCodeFilter, AppLimitCreditCodeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitCreditCodeSelect>;
}): Promise<void>;
