/**
 * Single item query hook for BillingModule
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { BillingModuleSelect, BillingModuleWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { BillingModuleSelect, BillingModuleWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const billingModuleQueryKey: (id: string | number) => readonly ["billingmodule", "detail", string | number];
/**
 * Query hook for fetching a single BillingModule
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useBillingModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useBillingModuleQuery<S extends BillingModuleSelect, TData = {
    billingModule: InferSelectResult<BillingModuleWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, BillingModuleSelect>;
} & Omit<UseQueryOptions<{
    billingModule: InferSelectResult<BillingModuleWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single BillingModule without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchBillingModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchBillingModuleQuery<S extends BillingModuleSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, BillingModuleSelect>;
}): Promise<{
    billingModule: InferSelectResult<BillingModuleWithRelations, S> | null;
}>;
/**
 * Prefetch a single BillingModule for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchBillingModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchBillingModuleQuery<S extends BillingModuleSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, BillingModuleSelect>;
}): Promise<void>;
