/**
 * Custom query hook for currentUser
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { UserSelect, User } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { UserSelect } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const currentUserQueryKey: () => readonly ["currentUser"];
/**
 * Query hook for currentUser
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useCurrentUserQuery({ selection: { fields: { id: true } } });
 *
 * if (data?.currentUser) {
 *   console.log(data.currentUser);
 * }
 * ```
 */
export declare function useCurrentUserQuery<S extends UserSelect, TData = {
    currentUser: InferSelectResult<User, S> | null;
}>(params: {
    selection: {
        fields: S & UserSelect;
    } & HookStrictSelect<NoInfer<S>, UserSelect>;
} & Omit<UseQueryOptions<{
    currentUser: InferSelectResult<User, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch currentUser without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchCurrentUserQuery({ selection: { fields: { id: true } } });
 * ```
 */
export declare function fetchCurrentUserQuery<S extends UserSelect>(params: {
    selection: {
        fields: S & UserSelect;
    } & HookStrictSelect<NoInfer<S>, UserSelect>;
}): Promise<{
    currentUser: InferSelectResult<User, S> | null;
}>;
/**
 * Prefetch currentUser for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchCurrentUserQuery(queryClient, { selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchCurrentUserQuery<S extends UserSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S & UserSelect;
    } & HookStrictSelect<NoInfer<S>, UserSelect>;
}): Promise<void>;
