/** * The shared bottom-layer Bot Framework REST client (spec ยง4.1) โ€” written once * here, reused by the later agent-side tool-face step. Raw fetch only; no * botbuilder. */ /** Options for {@link MsTeamsClient}. */ export type MsTeamsClientOptions = { appId: string; clientSecret: string; /** Default "https://login.microsoftonline.com/botframework.com" โ€” injectable for mocks. */ loginBaseUrl?: string; fetchImpl?: typeof fetch; now?: () => number; }; /** A failed connector-service call, with the HTTP status for callers to branch on. */ export declare class MsTeamsApiError extends Error { readonly status: number; constructor(status: number, message: string); } /** * Minimal Bot Framework connector-service client: client_credentials token * acquisition (cached) plus activity post/update against a channel-provided * serviceUrl. Honors 429 Retry-After with jittered backoff, max 3 tries. */ export declare class MsTeamsClient { private readonly opts; private readonly fetchImpl; private readonly now; private token?; constructor(opts: MsTeamsClientOptions); /** client_credentials token for scope https://api.botframework.com/.default; cached until exp-60s. */ getToken(): Promise; /** POST {serviceUrl}/v3/conversations/{conversationId}/activities[/{replyToId}] โ†’ { id }. */ postActivity(serviceUrl: string, conversationId: string, activity: Record, replyToId?: string): Promise<{ id: string; }>; /** PUT {serviceUrl}/v3/conversations/{conversationId}/activities/{activityId}. Same retry policy. */ updateActivity(serviceUrl: string, conversationId: string, activityId: string, activity: Record): Promise; private activitiesUrl; /** * Authorized JSON request honoring 429 Retry-After with jittered backoff, * max 3 tries. One 401 forces a fresh token and a single immediate retry. */ private request; } //# sourceMappingURL=client.d.ts.map