import { SfProject } from '@salesforce/core'; import { type AgentPreviewEndResponse, AgentPreviewInterface, type AgentPreviewSendResponse, type CompileAgentScriptResponse, ExtendedAgentJobSpec, PlannerResponse, PreviewMetadata, PublishAgent, ScriptAgentOptions } from '../types'; import { TranscriptEntry } from '../utils'; import { AgentBase } from './agentBase'; export declare class ScriptAgent extends AgentBase { private options; preview: AgentPreviewInterface & { setMockMode: (mockMode: 'Mock' | 'Live Test') => void; }; private mockMode; private agentScriptContent; private agentJson; private readonly apiBase; private readonly aabDirectory; private readonly metaContent; private readonly agentFilePath; constructor(options: ScriptAgentOptions); /** * Creates an AiAuthoringBundle directory, .script file, and -meta.xml file * * @returns Promise * @beta * @param options { * project: SfProject; * bundleApiName: string; * outputDir?: string; * agentSpec?: ExtendedAgentJobSpec; *} */ static createAuthoringBundle(options: { project: SfProject; bundleApiName: string; outputDir?: string; agentSpec?: ExtendedAgentJobSpec; }): Promise; refreshContent(): Promise; getTrace(planId: string): Promise; /** * Compiles AgentScript returning agent JSON when successful, otherwise the compile errors are returned. * * @returns Promise The raw API response * @beta */ compile(): Promise; /** * Publish an AgentJson representation to the org * * @beta * @returns {Promise} The publish response */ publish(skipMetadataRetrieve?: boolean): Promise; getHistoryFromDisc(sessionId?: string): Promise<{ metadata: PreviewMetadata | null; transcript: TranscriptEntry[]; traces: PlannerResponse[]; }>; /** * Ending is not required * this will save all the transcripts to disc * * @returns `AgentPreviewEndResponse` */ endSession(): Promise; getAgentIdForStorage(): string; protected canApexDebug(): boolean; protected handleApexDebuggingSetup(): Promise; protected sendMessage(message: string): Promise; private setMockMode; private startPreview; }