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