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