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