/**
 * Single item query hook for RoleType
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const roleTypeQueryKey: (id: string | number) => readonly ["roletype", "detail", string | number];
/**
 * Query hook for fetching a single RoleType
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useRoleTypeQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useRoleTypeQuery<S extends RoleTypeSelect, TData = {
    roleType: InferSelectResult<RoleTypeWithRelations, S> | null;
}>(params: {
    id: number;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, RoleTypeSelect>;
} & Omit<UseQueryOptions<{
    roleType: InferSelectResult<RoleTypeWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single RoleType without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchRoleTypeQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchRoleTypeQuery<S extends RoleTypeSelect>(params: {
    id: number;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, RoleTypeSelect>;
}): Promise<{
    roleType: InferSelectResult<RoleTypeWithRelations, S> | null;
}>;
/**
 * Prefetch a single RoleType for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchRoleTypeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchRoleTypeQuery<S extends RoleTypeSelect>(queryClient: QueryClient, params: {
    id: number;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, RoleTypeSelect>;
}): Promise<void>;
