/**
 * Single item 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 { PolicySelect, PolicyWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { PolicySelect, PolicyWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const policyQueryKey: (id: string | number) => readonly ["policy", "detail", string | number];
/**
 * Query hook for fetching a single Policy
 *
 * @example
 * ```tsx
 * const { data, isLoading } = usePolicyQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function usePolicyQuery<S extends PolicySelect, TData = {
    policy: InferSelectResult<PolicyWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PolicySelect>;
} & Omit<UseQueryOptions<{
    policy: InferSelectResult<PolicyWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single Policy without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchPolicyQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchPolicyQuery<S extends PolicySelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PolicySelect>;
}): Promise<{
    policy: InferSelectResult<PolicyWithRelations, S> | null;
}>;
/**
 * Prefetch a single Policy for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchPolicyQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchPolicyQuery<S extends PolicySelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PolicySelect>;
}): Promise<void>;
