import type { DefaultElements, Link, MakeRequest, MetaSysProps } from '../common-types';
export type AgentRunStatus = 'IN_PROGRESS' | 'FAILED' | 'COMPLETED' | 'PENDING_REVIEW' | 'DRAFT';
export type AgentGenerateResponse = {
    sys: {
        id: string;
        type: 'AgentRun';
        status: AgentRunStatus;
    };
};
export type AgentResumeRunPayload<TResumePayload = Record<string, unknown>> = {
    resumePayload: TResumePayload;
};
export type AgentRunMessageRole = 'system' | 'user' | 'assistant' | 'tool';
export type AgentRunMessageTextPart = {
    type: 'text';
    text: string;
};
export type AgentRunMessageToolCallPart = {
    type: 'tool-call';
    toolCallId: string;
    toolName: string;
    args: unknown;
};
export type AgentRunMessagePart = AgentRunMessageTextPart | AgentRunMessageToolCallPart;
export type AgentRunMessage = {
    id: string;
    createdAt: string;
    role: AgentRunMessageRole;
    content: {
        parts: Array<AgentRunMessagePart>;
    };
};
export type AgentRunProps = {
    sys: MetaSysProps & {
        type: 'AgentRun';
        createdAt: string;
        updatedAt?: string;
        status: AgentRunStatus;
        id: string;
    };
    agent: {
        sys: Link<'Agent'>;
    };
    space: {
        sys: Link<'Space'>;
    };
    title: string;
    messages: Array<AgentRunMessage>;
};
export type AgentRunQueryOptions = {
    agentIn?: string[];
    statusIn?: AgentRunStatus[];
};
export interface AgentRun extends AgentRunProps, DefaultElements<AgentRunProps> {
}
export declare function wrapAgentRun(_makeRequest: MakeRequest, data: AgentRunProps): AgentRun;
export declare function wrapAgentGenerateResponse(_makeRequest: MakeRequest, data: AgentGenerateResponse): AgentGenerateResponse;
export declare const wrapAgentRunCollection: (makeRequest: MakeRequest, data: import("..").CollectionProp<AgentRunProps>) => import("..").Collection<AgentRun, AgentRunProps>;
