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