import { Agent, AgentAuthMetadata, AgentHealth, AgentPromptManifest, AgentUsageLimitRecord, CreateAgentInput, UpdateAgentInput } from "@mcoda/shared"; import { AgentRunRatingRow, GlobalRepository } from "@mcoda/db"; import { AgentService, InvocationResult } from "@mcoda/agents"; import { RoutingService } from "../services/agents/RoutingService.js"; export interface AgentResponse extends Agent { capabilities: string[]; prompts?: AgentPromptManifest; health?: AgentHealth; auth?: AgentAuthMetadata; models?: Agent["models"]; } export interface AgentUsageLimitResponse extends AgentUsageLimitRecord { agentSlug?: string; effectiveResetAt?: string; resetAtExact: boolean; resetAtSource?: string; } export interface ListAgentsOptions { refreshHealth?: boolean; } export interface RunAgentOptions { force?: boolean; } export declare class AgentsApi { private repo; private agentService; private routingService; constructor(repo: GlobalRepository, agentService: AgentService, routingService: RoutingService); static create(): Promise; close(): Promise; private resolveAgent; private withCommandRun; listAgents(options?: ListAgentsOptions): Promise; listAgentRunRatings(idOrSlug: string, limit?: number): Promise; private deriveUsageLimitReset; listAgentUsageLimits(idOrSlug?: string): Promise; createAgent(input: CreateAgentInput): Promise; getAgent(idOrSlug: string): Promise; updateAgent(idOrSlug: string, patch: UpdateAgentInput): Promise; deleteAgent(idOrSlug: string, force?: boolean): Promise; setAgentAuth(idOrSlug: string, secret: string): Promise; getAgentPrompts(idOrSlug: string): Promise; testAgent(idOrSlug: string): Promise; probeAgent(idOrSlug: string, prompt?: string): Promise<{ health: AgentHealth; response: InvocationResult; prompt: string; }>; private extractTokenUsage; private extractTelemetryInfo; runAgent(idOrSlug: string, prompts: string[], metadata?: Record, options?: RunAgentOptions): Promise<{ agent: Pick; prompts: string[]; responses: InvocationResult[]; }>; setDefaultAgent(idOrSlug: string, workspaceId?: string, commandName?: string): Promise; } //# sourceMappingURL=AgentsApi.d.ts.map