/**
 * List 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 { ListSelectionConfig } from '../selection';
import type { EmailsModuleSelect, EmailsModuleWithRelations, EmailsModuleFilter, EmailsModuleOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { EmailsModuleSelect, EmailsModuleWithRelations, EmailsModuleFilter, EmailsModuleOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const emailsModulesQueryKey: (variables?: object) => readonly ["emailsmodule", "list", object];
/**
 * Query hook for fetching EmailsModule list
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useEmailsModulesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useEmailsModulesQuery<S extends EmailsModuleSelect, TData = {
    emailsModules: ConnectionResult<InferSelectResult<EmailsModuleWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, EmailsModuleFilter, EmailsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EmailsModuleSelect>;
} & Omit<UseQueryOptions<{
    emailsModules: ConnectionResult<InferSelectResult<EmailsModuleWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch EmailsModule list without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchEmailsModulesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchEmailsModulesQuery<S extends EmailsModuleSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, EmailsModuleFilter, EmailsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EmailsModuleSelect>;
}): Promise<{
    emailsModules: ConnectionResult<InferSelectResult<EmailsModuleWithRelations, S>>;
}>;
/**
 * Prefetch EmailsModule list for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchEmailsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchEmailsModulesQuery<S extends EmailsModuleSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, EmailsModuleFilter, EmailsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EmailsModuleSelect>;
}): Promise<void>;
