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