/**
 * Single item query hook for 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 { DatabaseSelect, DatabaseWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { DatabaseSelect, DatabaseWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const databaseQueryKey: (id: string | number) => readonly ["database", "detail", string | number];
/**
 * Query hook for fetching a single Database
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useDatabaseQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useDatabaseQuery<S extends DatabaseSelect, TData = {
    database: InferSelectResult<DatabaseWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DatabaseSelect>;
} & Omit<UseQueryOptions<{
    database: InferSelectResult<DatabaseWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single Database without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchDatabaseQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchDatabaseQuery<S extends DatabaseSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DatabaseSelect>;
}): Promise<{
    database: InferSelectResult<DatabaseWithRelations, S> | null;
}>;
/**
 * Prefetch a single Database for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchDatabaseQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchDatabaseQuery<S extends DatabaseSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DatabaseSelect>;
}): Promise<void>;
