/**
 * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { FunctionGraphSelect, FunctionGraphWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { FunctionGraphSelect, FunctionGraphWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const functionGraphQueryKey: (id: string | number) => readonly ["functiongraph", "detail", string | number];
/**
 * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useFunctionGraphQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useFunctionGraphQuery<S extends FunctionGraphSelect, TData = {
    functionGraph: InferSelectResult<FunctionGraphWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, FunctionGraphSelect>;
} & Omit<UseQueryOptions<{
    functionGraph: InferSelectResult<FunctionGraphWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store
 *
 * @example
 * ```ts
 * const data = await fetchFunctionGraphQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchFunctionGraphQuery<S extends FunctionGraphSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, FunctionGraphSelect>;
}): Promise<{
    functionGraph: InferSelectResult<FunctionGraphWithRelations, S> | null;
}>;
/**
 * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store
 *
 * @example
 * ```ts
 * await prefetchFunctionGraphQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchFunctionGraphQuery<S extends FunctionGraphSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, FunctionGraphSelect>;
}): Promise<void>;
