/**
 * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { BlueprintSelect, BlueprintWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { BlueprintSelect, BlueprintWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const blueprintQueryKey: (id: string | number) => readonly ["blueprint", "detail", string | number];
/**
 * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useBlueprintQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useBlueprintQuery<S extends BlueprintSelect, TData = {
    blueprint: InferSelectResult<BlueprintWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, BlueprintSelect>;
} & Omit<UseQueryOptions<{
    blueprint: InferSelectResult<BlueprintWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
 *
 * @example
 * ```ts
 * const data = await fetchBlueprintQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchBlueprintQuery<S extends BlueprintSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, BlueprintSelect>;
}): Promise<{
    blueprint: InferSelectResult<BlueprintWithRelations, S> | null;
}>;
/**
 * An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build.
 *
 * @example
 * ```ts
 * await prefetchBlueprintQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchBlueprintQuery<S extends BlueprintSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, BlueprintSelect>;
}): Promise<void>;
