/**
 * 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 { ListSelectionConfig } from '../selection';
import type { CorsSettingSelect, CorsSettingWithRelations, CorsSettingFilter, CorsSettingOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { CorsSettingSelect, CorsSettingWithRelations, CorsSettingFilter, CorsSettingOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const corsSettingsQueryKey: (variables?: object) => readonly ["corssetting", "list", object];
/**
 * Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useCorsSettingsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useCorsSettingsQuery<S extends CorsSettingSelect, TData = {
    corsSettings: ConnectionResult<InferSelectResult<CorsSettingWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, CorsSettingFilter, CorsSettingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, CorsSettingSelect>;
} & Omit<UseQueryOptions<{
    corsSettings: ConnectionResult<InferSelectResult<CorsSettingWithRelations, S>>;
}, 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 fetchCorsSettingsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchCorsSettingsQuery<S extends CorsSettingSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, CorsSettingFilter, CorsSettingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, CorsSettingSelect>;
}): Promise<{
    corsSettings: ConnectionResult<InferSelectResult<CorsSettingWithRelations, S>>;
}>;
/**
 * Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries
 *
 * @example
 * ```ts
 * await prefetchCorsSettingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchCorsSettingsQuery<S extends CorsSettingSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, CorsSettingFilter, CorsSettingOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, CorsSettingSelect>;
}): Promise<void>;
