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