/**
 * 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 { NamespaceSelect, NamespaceWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { NamespaceSelect, NamespaceWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const namespaceQueryKey: (id: string | number) => readonly ["namespace", "detail", string | number];
/**
 * Logical namespace containers for grouping secrets, config, functions, and other resources
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useNamespaceQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useNamespaceQuery<S extends NamespaceSelect, TData = {
    namespace: InferSelectResult<NamespaceWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, NamespaceSelect>;
} & Omit<UseQueryOptions<{
    namespace: InferSelectResult<NamespaceWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Logical namespace containers for grouping secrets, config, functions, and other resources
 *
 * @example
 * ```ts
 * const data = await fetchNamespaceQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchNamespaceQuery<S extends NamespaceSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, NamespaceSelect>;
}): Promise<{
    namespace: InferSelectResult<NamespaceWithRelations, S> | null;
}>;
/**
 * Logical namespace containers for grouping secrets, config, functions, and other resources
 *
 * @example
 * ```ts
 * await prefetchNamespaceQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchNamespaceQuery<S extends NamespaceSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, NamespaceSelect>;
}): Promise<void>;
