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