import { Vercel } from "@vercel/sdk"; import type { IntegrationScopeRequirement, ResolvedIntegrationAccount } from "../../../automation/integrations.js"; /** * Allows a Vercel action through OAuth or a personal access token. * * @param requiredScope - OAuth permission required by the action. */ export declare function vercelAccountOptions(requiredScope: IntegrationScopeRequirement): { readonly connections: readonly [{ readonly connectionMethodId: "oauth"; readonly requiredScope: IntegrationScopeRequirement; }, { readonly connectionMethodId: "access-token"; }]; }; /** Allows a Vercel action only through a personal access token. */ export declare function vercelAccessTokenAccountOptions(): { readonly connections: readonly [{ readonly connectionMethodId: "access-token"; }]; }; /** * Creates the official authenticated Vercel REST API client. * * @param account - Resolved Vercel account credentials. */ export declare function getVercelApi(account: ResolvedIntegrationAccount<"vercel">): Vercel; /** * Uses an explicit team or the team selected during OAuth installation. * * @param account - Resolved Vercel account credentials. * @param teamId - Optional explicit team override. */ export declare function getVercelTeamId(account: ResolvedIntegrationAccount<"vercel">, teamId?: string): string | undefined; /** * Requires an explicit or OAuth-installed team for team-only endpoints. * * @param account - Resolved Vercel account credentials. * @param teamId - Optional explicit team override. * @throws {Error} When neither source supplies a team ID. */ export declare function requireVercelTeamId(account: ResolvedIntegrationAccount<"vercel">, teamId?: string): string; /** * Reads the bearer token from either supported connection secret. * * @param account - Resolved Vercel account credentials. * @throws {Error} When the account uses an unsupported connection method. */ export declare function getVercelAccessToken(account: ResolvedIntegrationAccount<"vercel">): string; //# sourceMappingURL=api.d.ts.map