import { r as KlawConfig } from "./types.klaw-xKUw_Rz7.js"; import { l as SecretInput, p as SecretRef } from "./types.secrets-Cx0MFT2Y.js"; import { i as WizardPrompter } from "./prompts-BamwNu0a.js"; import { t as SecretInputMode } from "./provider-auth-types-CMPBtz92.js"; //#region src/plugins/provider-auth-ref.d.ts type SecretRefSetupPromptCopy = { sourceMessage?: string; envVarMessage?: string; envVarPlaceholder?: string; envVarFormatError?: string; envVarMissingError?: (envVar: string) => string; noProvidersMessage?: string; envValidatedMessage?: (envVar: string) => string; providerValidatedMessage?: (provider: string, id: string, source: "file" | "exec") => string; }; declare function promptSecretRefForSetup(params: { provider: string; config: KlawConfig; prompter: WizardPrompter; preferredEnvVar?: string; copy?: SecretRefSetupPromptCopy; env?: NodeJS.ProcessEnv; }): Promise<{ ref: SecretRef; resolvedValue: string; }>; //#endregion //#region src/plugins/provider-auth-mode.d.ts type SecretInputModePromptCopy = { modeMessage?: string; plaintextLabel?: string; plaintextHint?: string; refLabel?: string; refHint?: string; }; declare function resolveSecretInputModeForEnvSelection(params: { prompter: Pick; explicitMode?: SecretInputMode; copy?: SecretInputModePromptCopy; }): Promise; //#endregion //#region src/plugins/provider-auth-input.d.ts declare function normalizeApiKeyInput(raw: string): string; declare const validateApiKeyInput: (value: string) => "Required" | undefined; declare function formatApiKeyPreview(raw: string, opts?: { head?: number; tail?: number; }): string; declare function normalizeSecretInputModeInput(secretInputMode: string | null | undefined): SecretInputMode | undefined; declare function ensureApiKeyFromOptionEnvOrPrompt(params: { token: string | undefined; tokenProvider: string | undefined; secretInputMode?: SecretInputMode; config: KlawConfig; env?: NodeJS.ProcessEnv; expectedProviders: string[]; provider: string; envLabel: string; promptMessage: string; normalize: (value: string) => string; validate: (value: string) => string | undefined; prompter: WizardPrompter; setCredential: (apiKey: SecretInput, mode?: SecretInputMode) => Promise; noteMessage?: string; noteTitle?: string; }): Promise; declare function ensureApiKeyFromEnvOrPrompt(params: { config: KlawConfig; env?: NodeJS.ProcessEnv; provider: string; envLabel: string; promptMessage: string; normalize: (value: string) => string; validate: (value: string) => string | undefined; prompter: WizardPrompter; secretInputMode?: SecretInputMode; setCredential: (apiKey: SecretInput, mode?: SecretInputMode) => Promise; }): Promise; //#endregion export { normalizeSecretInputModeInput as a, promptSecretRefForSetup as c, normalizeApiKeyInput as i, ensureApiKeyFromOptionEnvOrPrompt as n, validateApiKeyInput as o, formatApiKeyPreview as r, resolveSecretInputModeForEnvSelection as s, ensureApiKeyFromEnvOrPrompt as t };