import { i as OpenClawConfig } from "./types.openclaw-kCuaFdwZ.js"; import { d as SecretInput, h as SecretRef } from "./types.secrets-C15Z_eLX.js"; import { r as OAuthCredentials } from "./provider-oauth-runtime-BM8VOa8i.js"; import { C as SecretInputMode } from "./types-Q03WKdi-.js"; //#region src/plugins/provider-auth-helpers.d.ts type ApiKeyStorageOptions = { secretInputMode?: SecretInputMode; config?: OpenClawConfig; }; type WriteOAuthCredentialsOptions = { syncSiblingAgents?: boolean; profileName?: string; displayName?: string; }; declare function buildApiKeyCredential(provider: string, input: SecretInput, metadata?: Record, options?: ApiKeyStorageOptions): { type: "api_key"; provider: string; key?: string; keyRef?: SecretRef; metadata?: Record; }; declare function upsertApiKeyProfile(params: { provider: string; input: SecretInput; agentDir?: string; options?: ApiKeyStorageOptions; profileId?: string; metadata?: Record; }): string; declare function applyAuthProfileConfig(cfg: OpenClawConfig, params: { profileId: string; provider: string; mode: "api_key" | "aws-sdk" | "oauth" | "token"; email?: string; displayName?: string; preferProfileFirst?: boolean; }): OpenClawConfig; declare function writeOAuthCredentials(provider: string, creds: OAuthCredentials, agentDir?: string, options?: WriteOAuthCredentialsOptions): Promise; //#endregion export { upsertApiKeyProfile as a, buildApiKeyCredential as i, WriteOAuthCredentialsOptions as n, writeOAuthCredentials as o, applyAuthProfileConfig as r, ApiKeyStorageOptions as t };