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