/**
 * 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 { EmailSelect, EmailWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { EmailSelect, EmailWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const emailQueryKey: (id: string | number) => readonly ["email", "detail", string | number];
/**
 * User email addresses with verification and primary-email management
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useEmailQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useEmailQuery<S extends EmailSelect, TData = {
    email: InferSelectResult<EmailWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, EmailSelect>;
} & Omit<UseQueryOptions<{
    email: InferSelectResult<EmailWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * User email addresses with verification and primary-email management
 *
 * @example
 * ```ts
 * const data = await fetchEmailQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchEmailQuery<S extends EmailSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, EmailSelect>;
}): Promise<{
    email: InferSelectResult<EmailWithRelations, S> | null;
}>;
/**
 * User email addresses with verification and primary-email management
 *
 * @example
 * ```ts
 * await prefetchEmailQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchEmailQuery<S extends EmailSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, EmailSelect>;
}): Promise<void>;
