/**
 * Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { PubkeySettingSelect, PubkeySettingWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { PubkeySettingSelect, PubkeySettingWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const pubkeySettingQueryKey: (id: string | number) => readonly ["pubkeysetting", "detail", string | number];
/**
 * Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries
 *
 * @example
 * ```tsx
 * const { data, isLoading } = usePubkeySettingQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function usePubkeySettingQuery<S extends PubkeySettingSelect, TData = {
    pubkeySetting: InferSelectResult<PubkeySettingWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PubkeySettingSelect>;
} & Omit<UseQueryOptions<{
    pubkeySetting: InferSelectResult<PubkeySettingWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries
 *
 * @example
 * ```ts
 * const data = await fetchPubkeySettingQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchPubkeySettingQuery<S extends PubkeySettingSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PubkeySettingSelect>;
}): Promise<{
    pubkeySetting: InferSelectResult<PubkeySettingWithRelations, S> | null;
}>;
/**
 * Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries
 *
 * @example
 * ```ts
 * await prefetchPubkeySettingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchPubkeySettingQuery<S extends PubkeySettingSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PubkeySettingSelect>;
}): Promise<void>;
