/**
 * 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 { DbPoolSelect, DbPoolWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { DbPoolSelect, DbPoolWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const dbPoolQueryKey: (id: string | number) => readonly ["dbpool", "detail", string | number];
/**
 * 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 } = useDbPoolQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useDbPoolQuery<S extends DbPoolSelect, TData = {
    dbPool: InferSelectResult<DbPoolWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DbPoolSelect>;
} & Omit<UseQueryOptions<{
    dbPool: InferSelectResult<DbPoolWithRelations, S> | null;
}, 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 fetchDbPoolQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchDbPoolQuery<S extends DbPoolSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DbPoolSelect>;
}): Promise<{
    dbPool: InferSelectResult<DbPoolWithRelations, S> | null;
}>;
/**
 * 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 prefetchDbPoolQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchDbPoolQuery<S extends DbPoolSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DbPoolSelect>;
}): Promise<void>;
