/**
 * Per-database and per-API CORS origin configuration; typed replacement for api_modules cors 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 { CorsSettingSelect, CorsSettingWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { CorsSettingSelect, CorsSettingWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const corsSettingQueryKey: (id: string | number) => readonly ["corssetting", "detail", string | number];
/**
 * Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useCorsSettingQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useCorsSettingQuery<S extends CorsSettingSelect, TData = {
    corsSetting: InferSelectResult<CorsSettingWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, CorsSettingSelect>;
} & Omit<UseQueryOptions<{
    corsSetting: InferSelectResult<CorsSettingWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries
 *
 * @example
 * ```ts
 * const data = await fetchCorsSettingQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchCorsSettingQuery<S extends CorsSettingSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, CorsSettingSelect>;
}): Promise<{
    corsSetting: InferSelectResult<CorsSettingWithRelations, S> | null;
}>;
/**
 * Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries
 *
 * @example
 * ```ts
 * await prefetchCorsSettingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchCorsSettingQuery<S extends CorsSettingSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, CorsSettingSelect>;
}): Promise<void>;
