/**
 * 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 { ListSelectionConfig } from '../selection';
import type { DomainSelect, DomainWithRelations, DomainFilter, DomainOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { DomainSelect, DomainWithRelations, DomainFilter, DomainOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const domainsQueryKey: (variables?: object) => readonly ["domain", "list", object];
/**
 * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useDomainsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useDomainsQuery<S extends DomainSelect, TData = {
    domains: ConnectionResult<InferSelectResult<DomainWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, DomainFilter, DomainOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DomainSelect>;
} & Omit<UseQueryOptions<{
    domains: ConnectionResult<InferSelectResult<DomainWithRelations, S>>;
}, 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 fetchDomainsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchDomainsQuery<S extends DomainSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, DomainFilter, DomainOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DomainSelect>;
}): Promise<{
    domains: ConnectionResult<InferSelectResult<DomainWithRelations, S>>;
}>;
/**
 * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site
 *
 * @example
 * ```ts
 * await prefetchDomainsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchDomainsQuery<S extends DomainSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, DomainFilter, DomainOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DomainSelect>;
}): Promise<void>;
