/**
 * 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 { ListSelectionConfig } from '../selection';
import type { ResourceDefinitionSelect, ResourceDefinitionWithRelations, ResourceDefinitionFilter, ResourceDefinitionOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { ResourceDefinitionSelect, ResourceDefinitionWithRelations, ResourceDefinitionFilter, ResourceDefinitionOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const resourceDefinitionsQueryKey: (variables?: object) => readonly ["resourcedefinition", "list", object];
/**
 * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useResourceDefinitionsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useResourceDefinitionsQuery<S extends ResourceDefinitionSelect, TData = {
    resourceDefinitions: ConnectionResult<InferSelectResult<ResourceDefinitionWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ResourceDefinitionFilter, ResourceDefinitionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ResourceDefinitionSelect>;
} & Omit<UseQueryOptions<{
    resourceDefinitions: ConnectionResult<InferSelectResult<ResourceDefinitionWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements
 *
 * @example
 * ```ts
 * const data = await fetchResourceDefinitionsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchResourceDefinitionsQuery<S extends ResourceDefinitionSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ResourceDefinitionFilter, ResourceDefinitionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ResourceDefinitionSelect>;
}): Promise<{
    resourceDefinitions: ConnectionResult<InferSelectResult<ResourceDefinitionWithRelations, S>>;
}>;
/**
 * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements
 *
 * @example
 * ```ts
 * await prefetchResourceDefinitionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchResourceDefinitionsQuery<S extends ResourceDefinitionSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ResourceDefinitionFilter, ResourceDefinitionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ResourceDefinitionSelect>;
}): Promise<void>;
