/**
 * 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 { AppLimitCreditCodeSelect, AppLimitCreditCodeWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AppLimitCreditCodeSelect, AppLimitCreditCodeWithRelations, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appLimitCreditCodeQueryKey: (id: string | number) => readonly ["applimitcreditcode", "detail", string | number];
/**
 * Redeemable credit codes managed by admins with the add_credits permission
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppLimitCreditCodeQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAppLimitCreditCodeQuery<S extends AppLimitCreditCodeSelect, TData = {
    appLimitCreditCode: InferSelectResult<AppLimitCreditCodeWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppLimitCreditCodeSelect>;
} & Omit<UseQueryOptions<{
    appLimitCreditCode: InferSelectResult<AppLimitCreditCodeWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Redeemable credit codes managed by admins with the add_credits permission
 *
 * @example
 * ```ts
 * const data = await fetchAppLimitCreditCodeQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAppLimitCreditCodeQuery<S extends AppLimitCreditCodeSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppLimitCreditCodeSelect>;
}): Promise<{
    appLimitCreditCode: InferSelectResult<AppLimitCreditCodeWithRelations, S> | null;
}>;
/**
 * Redeemable credit codes managed by admins with the add_credits permission
 *
 * @example
 * ```ts
 * await prefetchAppLimitCreditCodeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAppLimitCreditCodeQuery<S extends AppLimitCreditCodeSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppLimitCreditCodeSelect>;
}): Promise<void>;
