/**
 * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
 * @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 { ResourceSelect, ResourceWithRelations, ResourceFilter, ResourceOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { ResourceSelect, ResourceWithRelations, ResourceFilter, ResourceOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const resourcesQueryKey: (variables?: object) => readonly ["resource", "list", object];
/**
 * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useResourcesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useResourcesQuery<S extends ResourceSelect, TData = {
    resources: ConnectionResult<InferSelectResult<ResourceWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ResourceFilter, ResourceOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ResourceSelect>;
} & Omit<UseQueryOptions<{
    resources: ConnectionResult<InferSelectResult<ResourceWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
 *
 * @example
 * ```ts
 * const data = await fetchResourcesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchResourcesQuery<S extends ResourceSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ResourceFilter, ResourceOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ResourceSelect>;
}): Promise<{
    resources: ConnectionResult<InferSelectResult<ResourceWithRelations, S>>;
}>;
/**
 * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
 *
 * @example
 * ```ts
 * await prefetchResourcesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchResourcesQuery<S extends ResourceSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ResourceFilter, ResourceOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ResourceSelect>;
}): Promise<void>;
