/**
 * Logical namespace containers for grouping secrets, config, functions, and other resources
 * @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 { NamespaceSelect, NamespaceWithRelations, NamespaceFilter, NamespaceOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { NamespaceSelect, NamespaceWithRelations, NamespaceFilter, NamespaceOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const namespacesQueryKey: (variables?: object) => readonly ["namespace", "list", object];
/**
 * Logical namespace containers for grouping secrets, config, functions, and other resources
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useNamespacesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useNamespacesQuery<S extends NamespaceSelect, TData = {
    namespaces: ConnectionResult<InferSelectResult<NamespaceWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, NamespaceFilter, NamespaceOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, NamespaceSelect>;
} & Omit<UseQueryOptions<{
    namespaces: ConnectionResult<InferSelectResult<NamespaceWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Logical namespace containers for grouping secrets, config, functions, and other resources
 *
 * @example
 * ```ts
 * const data = await fetchNamespacesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchNamespacesQuery<S extends NamespaceSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, NamespaceFilter, NamespaceOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, NamespaceSelect>;
}): Promise<{
    namespaces: ConnectionResult<InferSelectResult<NamespaceWithRelations, S>>;
}>;
/**
 * Logical namespace containers for grouping secrets, config, functions, and other resources
 *
 * @example
 * ```ts
 * await prefetchNamespacesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchNamespacesQuery<S extends NamespaceSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, NamespaceFilter, NamespaceOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, NamespaceSelect>;
}): Promise<void>;
