/**
 * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed
 * @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 { ConfigSelect, ConfigWithRelations, ConfigFilter, ConfigOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { ConfigSelect, ConfigWithRelations, ConfigFilter, ConfigOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const configsQueryKey: (variables?: object) => readonly ["config", "list", object];
/**
 * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useConfigsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useConfigsQuery<S extends ConfigSelect, TData = {
    configs: ConnectionResult<InferSelectResult<ConfigWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ConfigFilter, ConfigOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ConfigSelect>;
} & Omit<UseQueryOptions<{
    configs: ConnectionResult<InferSelectResult<ConfigWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed
 *
 * @example
 * ```ts
 * const data = await fetchConfigsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchConfigsQuery<S extends ConfigSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ConfigFilter, ConfigOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ConfigSelect>;
}): Promise<{
    configs: ConnectionResult<InferSelectResult<ConfigWithRelations, S>>;
}>;
/**
 * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed
 *
 * @example
 * ```ts
 * await prefetchConfigsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchConfigsQuery<S extends ConfigSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ConfigFilter, ConfigOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ConfigSelect>;
}): Promise<void>;
