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