/**
 * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { HttpRouteSelect, HttpRouteWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { HttpRouteSelect, HttpRouteWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const httpRouteQueryKey: (id: string | number) => readonly ["httproute", "detail", string | number];
/**
 * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useHttpRouteQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useHttpRouteQuery<S extends HttpRouteSelect, TData = {
    httpRoute: InferSelectResult<HttpRouteWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, HttpRouteSelect>;
} & Omit<UseQueryOptions<{
    httpRoute: InferSelectResult<HttpRouteWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target
 *
 * @example
 * ```ts
 * const data = await fetchHttpRouteQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchHttpRouteQuery<S extends HttpRouteSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, HttpRouteSelect>;
}): Promise<{
    httpRoute: InferSelectResult<HttpRouteWithRelations, S> | null;
}>;
/**
 * Request-time HTTP routing authority: registered domain plus path prefix and optional method to a typed target
 *
 * @example
 * ```ts
 * await prefetchHttpRouteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchHttpRouteQuery<S extends HttpRouteSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, HttpRouteSelect>;
}): Promise<void>;
