/** * Context-Aware Credential Prompter * * Collects sensitive credentials using appropriate method based on context: * Priority: * 1. MCP Elicitation (if available) - Best for AI clients * 2. Native OS dialogs - Fallback for MCP server mode * 3. Terminal readline - For CLI usage */ import { ElicitationServer } from './elicitation-helper.js'; export interface CredentialPromptOptions { name: string; description?: string; hidden?: boolean; example?: string; elicitationServer?: ElicitationServer; } /** * Prompt user for a credential using context-appropriate method * * Priority chain: * 1. MCP Elicitation (if elicitationServer provided) - MCP protocol standard * 2. Native OS dialog (if not terminal mode) - Fallback for MCP server * 3. Terminal readline (if terminal mode) - CLI usage * * @param options Credential prompt configuration * @returns The credential value, or null if user cancelled */ export declare function promptForCredential(options: CredentialPromptOptions): Promise; /** * Prompt for multiple credentials sequentially * Stops if user cancels any prompt * * @param credentials Array of credential prompts * @returns Map of credential names to values, or null if any cancelled */ export declare function promptForCredentials(credentials: CredentialPromptOptions[]): Promise | null>; //# sourceMappingURL=credential-prompter.d.ts.map