/**
 * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated.
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { DatabaseProvisionModuleSelect, DatabaseProvisionModuleWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { DatabaseProvisionModuleSelect, DatabaseProvisionModuleWithRelations, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const databaseProvisionModuleQueryKey: (id: string | number) => readonly ["databaseprovisionmodule", "detail", string | number];
/**
 * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated.
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useDatabaseProvisionModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useDatabaseProvisionModuleQuery<S extends DatabaseProvisionModuleSelect, TData = {
    databaseProvisionModule: InferSelectResult<DatabaseProvisionModuleWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DatabaseProvisionModuleSelect>;
} & Omit<UseQueryOptions<{
    databaseProvisionModule: InferSelectResult<DatabaseProvisionModuleWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated.
 *
 * @example
 * ```ts
 * const data = await fetchDatabaseProvisionModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchDatabaseProvisionModuleQuery<S extends DatabaseProvisionModuleSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DatabaseProvisionModuleSelect>;
}): Promise<{
    databaseProvisionModule: InferSelectResult<DatabaseProvisionModuleWithRelations, S> | null;
}>;
/**
 * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated.
 *
 * @example
 * ```ts
 * await prefetchDatabaseProvisionModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchDatabaseProvisionModuleQuery<S extends DatabaseProvisionModuleSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DatabaseProvisionModuleSelect>;
}): Promise<void>;
