/**
 * Workflow plan attached to an agent thread with ordered tasks and optional approval gates
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { AgentPlanSelect, AgentPlanWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AgentPlanSelect, AgentPlanWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const agentPlanQueryKey: (id: string | number) => readonly ["agentplan", "detail", string | number];
/**
 * Workflow plan attached to an agent thread with ordered tasks and optional approval gates
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAgentPlanQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAgentPlanQuery<S extends AgentPlanSelect, TData = {
    agentPlan: InferSelectResult<AgentPlanWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentPlanSelect>;
} & Omit<UseQueryOptions<{
    agentPlan: InferSelectResult<AgentPlanWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Workflow plan attached to an agent thread with ordered tasks and optional approval gates
 *
 * @example
 * ```ts
 * const data = await fetchAgentPlanQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAgentPlanQuery<S extends AgentPlanSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentPlanSelect>;
}): Promise<{
    agentPlan: InferSelectResult<AgentPlanWithRelations, S> | null;
}>;
/**
 * Workflow plan attached to an agent thread with ordered tasks and optional approval gates
 *
 * @example
 * ```ts
 * await prefetchAgentPlanQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAgentPlanQuery<S extends AgentPlanSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentPlanSelect>;
}): Promise<void>;
