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