import { r as KlawConfig } from "./types.klaw-xKUw_Rz7.js"; import { l as SecretInput, p as SecretRef } from "./types.secrets-Cx0MFT2Y.js"; import { t as SecretInputMode } from "./provider-auth-types-CMPBtz92.js"; import { OAuthCredentials } from "@earendil-works/pi-ai"; //#region src/plugins/provider-auth-helpers.d.ts type ApiKeyStorageOptions = { secretInputMode?: SecretInputMode; config?: KlawConfig; }; 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: KlawConfig, params: { profileId: string; provider: string; mode: "api_key" | "aws-sdk" | "oauth" | "token"; email?: string; displayName?: string; preferProfileFirst?: boolean; }): KlawConfig; 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 };