/**
 * Database provisioning preset catalog — merkle-versioned head over the infra store
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { DbPresetSelect, DbPresetWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { DbPresetSelect, DbPresetWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const dbPresetQueryKey: (id: string | number) => readonly ["dbpreset", "detail", string | number];
/**
 * Database provisioning preset catalog — merkle-versioned head over the infra store
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useDbPresetQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useDbPresetQuery<S extends DbPresetSelect, TData = {
    dbPreset: InferSelectResult<DbPresetWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DbPresetSelect>;
} & Omit<UseQueryOptions<{
    dbPreset: InferSelectResult<DbPresetWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Database provisioning preset catalog — merkle-versioned head over the infra store
 *
 * @example
 * ```ts
 * const data = await fetchDbPresetQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchDbPresetQuery<S extends DbPresetSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DbPresetSelect>;
}): Promise<{
    dbPreset: InferSelectResult<DbPresetWithRelations, S> | null;
}>;
/**
 * Database provisioning preset catalog — merkle-versioned head over the infra store
 *
 * @example
 * ```ts
 * await prefetchDbPresetQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchDbPresetQuery<S extends DbPresetSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DbPresetSelect>;
}): Promise<void>;
