/**
 * Task within a plan, with ordering 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 { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const agentTaskQueryKey: (id: string | number) => readonly ["agenttask", "detail", string | number];
/**
 * Task within a plan, with ordering and optional approval gates
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAgentTaskQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAgentTaskQuery<S extends AgentTaskSelect, TData = {
    agentTask: InferSelectResult<AgentTaskWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentTaskSelect>;
} & Omit<UseQueryOptions<{
    agentTask: InferSelectResult<AgentTaskWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Task within a plan, with ordering and optional approval gates
 *
 * @example
 * ```ts
 * const data = await fetchAgentTaskQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAgentTaskQuery<S extends AgentTaskSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentTaskSelect>;
}): Promise<{
    agentTask: InferSelectResult<AgentTaskWithRelations, S> | null;
}>;
/**
 * Task within a plan, with ordering and optional approval gates
 *
 * @example
 * ```ts
 * await prefetchAgentTaskQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAgentTaskQuery<S extends AgentTaskSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentTaskSelect>;
}): Promise<void>;
