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