/**
 * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { DomainSelect, DomainWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { DomainSelect, DomainWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const domainQueryKey: (id: string | number) => readonly ["domain", "detail", string | number];
/**
 * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useDomainQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useDomainQuery<S extends DomainSelect, TData = {
    domain: InferSelectResult<DomainWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DomainSelect>;
} & Omit<UseQueryOptions<{
    domain: InferSelectResult<DomainWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site
 *
 * @example
 * ```ts
 * const data = await fetchDomainQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchDomainQuery<S extends DomainSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DomainSelect>;
}): Promise<{
    domain: InferSelectResult<DomainWithRelations, S> | null;
}>;
/**
 * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site
 *
 * @example
 * ```ts
 * await prefetchDomainQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchDomainQuery<S extends DomainSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DomainSelect>;
}): Promise<void>;
