/**
 * Database-wide feature flags and settings; controls which platform features are available to all APIs in this 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 { DatabaseSettingSelect, DatabaseSettingWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { DatabaseSettingSelect, DatabaseSettingWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const databaseSettingQueryKey: (id: string | number) => readonly ["databasesetting", "detail", string | number];
/**
 * Database-wide feature flags and settings; controls which platform features are available to all APIs in this database
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useDatabaseSettingQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useDatabaseSettingQuery<S extends DatabaseSettingSelect, TData = {
    databaseSetting: InferSelectResult<DatabaseSettingWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DatabaseSettingSelect>;
} & Omit<UseQueryOptions<{
    databaseSetting: InferSelectResult<DatabaseSettingWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Database-wide feature flags and settings; controls which platform features are available to all APIs in this database
 *
 * @example
 * ```ts
 * const data = await fetchDatabaseSettingQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchDatabaseSettingQuery<S extends DatabaseSettingSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DatabaseSettingSelect>;
}): Promise<{
    databaseSetting: InferSelectResult<DatabaseSettingWithRelations, S> | null;
}>;
/**
 * Database-wide feature flags and settings; controls which platform features are available to all APIs in this database
 *
 * @example
 * ```ts
 * await prefetchDatabaseSettingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchDatabaseSettingQuery<S extends DatabaseSettingSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DatabaseSettingSelect>;
}): Promise<void>;
