/**
 * 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 { PlatformResourceSelect, PlatformResourceWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { PlatformResourceSelect, PlatformResourceWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const platformResourceQueryKey: (id: string | number) => readonly ["platformresource", "detail", string | number];
/**
 * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
 *
 * @example
 * ```tsx
 * const { data, isLoading } = usePlatformResourceQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function usePlatformResourceQuery<S extends PlatformResourceSelect, TData = {
    platformResource: InferSelectResult<PlatformResourceWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PlatformResourceSelect>;
} & Omit<UseQueryOptions<{
    platformResource: InferSelectResult<PlatformResourceWithRelations, S> | null;
}, 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 fetchPlatformResourceQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchPlatformResourceQuery<S extends PlatformResourceSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PlatformResourceSelect>;
}): Promise<{
    platformResource: InferSelectResult<PlatformResourceWithRelations, S> | null;
}>;
/**
 * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
 *
 * @example
 * ```ts
 * await prefetchPlatformResourceQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchPlatformResourceQuery<S extends PlatformResourceSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PlatformResourceSelect>;
}): Promise<void>;
