import type { ChannelAccount, ConversationReference } from '@microsoft/agents-activity'; /** * Well-known Teams service URLs for proactive messaging. * * Use only when the incoming `serviceUrl` from a real conversation is unavailable. * Once you have received a `serviceUrl` from a real turn, cache and prefer that value. */ export declare const TeamsServiceEndpoints: { /** Standard public cloud Teams endpoint. */ readonly publicGlobal: "https://smba.trafficmanager.net/teams/"; /** US Government Community Cloud (GCC). */ readonly gcc: "https://smba.infra.gcc.teams.microsoft.com/teams"; /** US Government Community Cloud High (GCC-High). */ readonly gccHigh: "https://smba.infra.gov.teams.microsoft.us/teams"; /** US Department of Defense (DoD). */ readonly dod: "https://smba.infra.dod.teams.microsoft.us/teams"; }; /** * Fluent builder for `ConversationReference`. */ export declare class ConversationReferenceBuilder { private readonly _channelId; private _serviceUrl; private _agent; private _user?; private _conversationId?; private _activityId?; private _locale?; private constructor(); /** * Creates a new builder seeded with the agent identity and channel. * On Teams, the agent id is prefixed with `28:` automatically. * @param agentClientId The agent's client (app) ID. * @param channelId The target channel (e.g. `'msteams'`, `'webchat'`). * @param serviceUrl Optional override. If omitted, `build()` fills in the * channel default via `serviceUrlForChannel()`. */ static create(agentClientId: string, channelId: string, serviceUrl?: string): ConversationReferenceBuilder; /** * Returns the default service URL for a channel. * Teams returns the public global endpoint; all other channels use the * `https://{channelId}.botframework.com/` pattern (matching C# behavior). */ static serviceUrlForChannel(channelId: string): string; /** Sets `reference.user` from an id + optional name. Role defaults to `RoleTypes.User`. */ withUser(userId: string, userName?: string): this; /** Sets `reference.user` from a full `ChannelAccount`. */ withUser(account: ChannelAccount): this; /** Sets `reference.agent` from an id + optional name. Role defaults to `RoleTypes.Agent`. On Teams, id is prefixed with `28:`. */ withAgent(agentClientId: string, agentName?: string): this; /** Sets `reference.agent` from a full `ChannelAccount`. */ withAgent(account: ChannelAccount): this; /** Sets `reference.serviceUrl`. */ withServiceUrl(serviceUrl: string): this; /** Sets `reference.conversation.id`. */ withConversationId(id: string): this; /** Sets `reference.activityId`. */ withActivityId(activityId: string): this; /** Sets `reference.locale`. */ withLocale(locale: string): this; /** Builds and returns the `ConversationReference`. */ build(): ConversationReference; /** * Builds a `ChannelAccount` for the agent, applying the Teams `28:` id prefix * when the channel is `msteams`. */ private static agentForChannel; }