/**
 * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { ResourceDefinitionSelect, ResourceDefinitionWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ResourceDefinitionSelect, ResourceDefinitionWithRelations, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const resourceDefinitionQueryKey: (id: string | number) => readonly ["resourcedefinition", "detail", string | number];
/**
 * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useResourceDefinitionQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useResourceDefinitionQuery<S extends ResourceDefinitionSelect, TData = {
    resourceDefinition: InferSelectResult<ResourceDefinitionWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ResourceDefinitionSelect>;
} & Omit<UseQueryOptions<{
    resourceDefinition: InferSelectResult<ResourceDefinitionWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements
 *
 * @example
 * ```ts
 * const data = await fetchResourceDefinitionQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchResourceDefinitionQuery<S extends ResourceDefinitionSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ResourceDefinitionSelect>;
}): Promise<{
    resourceDefinition: InferSelectResult<ResourceDefinitionWithRelations, S> | null;
}>;
/**
 * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements
 *
 * @example
 * ```ts
 * await prefetchResourceDefinitionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchResourceDefinitionQuery<S extends ResourceDefinitionSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ResourceDefinitionSelect>;
}): Promise<void>;
