import { Agent, AgentAuthMetadata, AgentHealth, AgentPromptManifest } from "@mcoda/shared"; import { GlobalRepository } from "@mcoda/db"; import { AgentAdapter, InvocationRequest, InvocationResult } from "../adapters/AdapterTypes.js"; interface AgentServiceOptions { now?: () => number; sleep?: (ms: number) => Promise; checkInternetReachable?: () => Promise; connectivityPollIntervalMs?: number; } export declare class AgentService { private repo; private options; constructor(repo: GlobalRepository, options?: AgentServiceOptions); static create(): Promise; close(): Promise; resolveAgent(identifier: string): Promise; getPrompts(agentId: string): Promise; getCapabilities(agentId: string): Promise; getAuthMetadata(agentId: string): Promise; private getDecryptedSecret; private buildAdapterConfig; private resolveAdapterType; getAdapter(agent: Agent, adapterOverride?: string): Promise; private nowMs; private sleepMs; private sleepUntil; private getConnectivityPollIntervalMs; private isInternetReachable; private waitForInternetRecovery; private isOfflineCapable; private metric; private estimateWindowResetMs; private estimateResetMsFromWindowTypes; private normalizeLimitKey; private getAgentAvailability; private listEquivalentAgents; private findNextAvailableAgent; private findEarliestResetMs; private persistUsageLimitObservation; healthCheck(agentId: string): Promise; private assertSelfHostedLifecycleSelectable; invoke(agentId: string, request: InvocationRequest): Promise; invokeStream(agentId: string, request: InvocationRequest): Promise>; private applyGatewayHandoff; private recordInvocationFailure; private applyDocdexGuidance; } export {}; //# sourceMappingURL=AgentService.d.ts.map