/**
 * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database).
 * @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 { DbPoolSelect, DbPoolWithRelations, DbPoolFilter, DbPoolOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { DbPoolSelect, DbPoolWithRelations, DbPoolFilter, DbPoolOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const dbPoolsQueryKey: (variables?: object) => readonly ["dbpool", "list", object];
/**
 * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database).
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useDbPoolsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useDbPoolsQuery<S extends DbPoolSelect, TData = {
    dbPools: ConnectionResult<InferSelectResult<DbPoolWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, DbPoolFilter, DbPoolOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DbPoolSelect>;
} & Omit<UseQueryOptions<{
    dbPools: ConnectionResult<InferSelectResult<DbPoolWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database).
 *
 * @example
 * ```ts
 * const data = await fetchDbPoolsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchDbPoolsQuery<S extends DbPoolSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, DbPoolFilter, DbPoolOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DbPoolSelect>;
}): Promise<{
    dbPools: ConnectionResult<InferSelectResult<DbPoolWithRelations, S>>;
}>;
/**
 * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database).
 *
 * @example
 * ```ts
 * await prefetchDbPoolsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchDbPoolsQuery<S extends DbPoolSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, DbPoolFilter, DbPoolOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DbPoolSelect>;
}): Promise<void>;
