/**
 * List 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 { ListSelectionConfig } from '../selection';
import type { RoleTypeSelect, RoleTypeWithRelations, RoleTypeFilter, RoleTypeOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { RoleTypeSelect, RoleTypeWithRelations, RoleTypeFilter, RoleTypeOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const roleTypesQueryKey: (variables?: object) => readonly ["roletype", "list", object];
/**
 * Query hook for fetching RoleType list
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useRoleTypesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useRoleTypesQuery<S extends RoleTypeSelect, TData = {
    roleTypes: ConnectionResult<InferSelectResult<RoleTypeWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, RoleTypeFilter, RoleTypeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, RoleTypeSelect>;
} & Omit<UseQueryOptions<{
    roleTypes: ConnectionResult<InferSelectResult<RoleTypeWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch RoleType list without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchRoleTypesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchRoleTypesQuery<S extends RoleTypeSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, RoleTypeFilter, RoleTypeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, RoleTypeSelect>;
}): Promise<{
    roleTypes: ConnectionResult<InferSelectResult<RoleTypeWithRelations, S>>;
}>;
/**
 * Prefetch RoleType list for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchRoleTypesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchRoleTypesQuery<S extends RoleTypeSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, RoleTypeFilter, RoleTypeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, RoleTypeSelect>;
}): Promise<void>;
