/**
 * List 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 { ListSelectionConfig } from '../selection';
import type { PartitionSelect, PartitionWithRelations, PartitionFilter, PartitionOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { PartitionSelect, PartitionWithRelations, PartitionFilter, PartitionOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const partitionsQueryKey: (variables?: object) => readonly ["partition", "list", object];
/**
 * Query hook for fetching Partition list
 *
 * @example
 * ```tsx
 * const { data, isLoading } = usePartitionsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function usePartitionsQuery<S extends PartitionSelect, TData = {
    partitions: ConnectionResult<InferSelectResult<PartitionWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PartitionFilter, PartitionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PartitionSelect>;
} & Omit<UseQueryOptions<{
    partitions: ConnectionResult<InferSelectResult<PartitionWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch Partition list without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchPartitionsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchPartitionsQuery<S extends PartitionSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PartitionFilter, PartitionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PartitionSelect>;
}): Promise<{
    partitions: ConnectionResult<InferSelectResult<PartitionWithRelations, S>>;
}>;
/**
 * Prefetch Partition list for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchPartitionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchPartitionsQuery<S extends PartitionSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PartitionFilter, PartitionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PartitionSelect>;
}): Promise<void>;
