/**
 * 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 { ListSelectionConfig } from '../selection';
import type { AgentPlanSelect, AgentPlanWithRelations, AgentPlanFilter, AgentPlanOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { AgentPlanSelect, AgentPlanWithRelations, AgentPlanFilter, AgentPlanOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const agentPlansQueryKey: (variables?: object) => readonly ["agentplan", "list", object];
/**
 * Workflow plan attached to an agent thread with ordered tasks and optional approval gates
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAgentPlansQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useAgentPlansQuery<S extends AgentPlanSelect, TData = {
    agentPlans: ConnectionResult<InferSelectResult<AgentPlanWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AgentPlanFilter, AgentPlanOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentPlanSelect>;
} & Omit<UseQueryOptions<{
    agentPlans: ConnectionResult<InferSelectResult<AgentPlanWithRelations, S>>;
}, 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 fetchAgentPlansQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchAgentPlansQuery<S extends AgentPlanSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AgentPlanFilter, AgentPlanOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentPlanSelect>;
}): Promise<{
    agentPlans: ConnectionResult<InferSelectResult<AgentPlanWithRelations, S>>;
}>;
/**
 * Workflow plan attached to an agent thread with ordered tasks and optional approval gates
 *
 * @example
 * ```ts
 * await prefetchAgentPlansQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchAgentPlansQuery<S extends AgentPlanSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AgentPlanFilter, AgentPlanOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentPlanSelect>;
}): Promise<void>;
