import { FxError } from "@microsoft/teamsfx-api"; import { Result } from "neverthrow"; import { probeMCPServerAuth, resolveMCPOAuthMetadata } from "../../common/mcpToolFetcher"; import { StepContext } from "../pipeline/runScaffoldPipeline"; /** Indirection seam so unit tests can stub the network probes on a plain object. */ export declare const mcpAuthScaffoldDeps: { probeMCPServerAuth: typeof probeMCPServerAuth; resolveMCPOAuthMetadata: typeof resolveMCPOAuthMetadata; }; /** * Inject the `oauth/register` (or `dcr/register`) provision action into the rendered * `m365agents.yml` (idempotent; inserted after `teamsApp/create`, which writes the * `${{TEAMS_APP_ID}}` the action references). */ export declare function injectMcpAuthAction(ctx: StepContext, args: { ymlPath: string; authType: string; mcpServerUrl: string; credentialFields?: { clientId: boolean; clientSecret: boolean; scope: boolean; }; }): Promise>; /** * Persist the deterministic registration placeholder and the static credentials collected during * create. The runtime routes `SECRET_*` through its encrypted user-environment storage. */ export declare function persistMcpAuthRegistrationEnv(ctx: StepContext, args: { authType: string; mcpServerUrl: string; oauthClientId?: string; oauthClientSecret?: string; oauthScopes?: string; entraClientId?: string; }): Promise>; //# sourceMappingURL=mcpAuthScaffold.d.ts.map