/**
 * User email addresses with verification and primary-email management
 * @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 { EmailSelect, EmailWithRelations, EmailFilter, EmailOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { EmailSelect, EmailWithRelations, EmailFilter, EmailOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const emailsQueryKey: (variables?: object) => readonly ["email", "list", object];
/**
 * User email addresses with verification and primary-email management
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useEmailsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useEmailsQuery<S extends EmailSelect, TData = {
    emails: ConnectionResult<InferSelectResult<EmailWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, EmailFilter, EmailOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EmailSelect>;
} & Omit<UseQueryOptions<{
    emails: ConnectionResult<InferSelectResult<EmailWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * User email addresses with verification and primary-email management
 *
 * @example
 * ```ts
 * const data = await fetchEmailsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchEmailsQuery<S extends EmailSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, EmailFilter, EmailOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EmailSelect>;
}): Promise<{
    emails: ConnectionResult<InferSelectResult<EmailWithRelations, S>>;
}>;
/**
 * User email addresses with verification and primary-email management
 *
 * @example
 * ```ts
 * await prefetchEmailsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchEmailsQuery<S extends EmailSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, EmailFilter, EmailOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EmailSelect>;
}): Promise<void>;
