import type { GlobalCLIPluginConfigScope, ProjectLocalConfig } from '@ones-open/cli-utils'; import type { LoginCLIOptionsSchema, LoginRequestParamsSchema } from '@ones-open/cli-utils'; type LoginPromptsAnswer = LoginPromptsParamsAnswer | LoginPromptsScopeAnswer; interface LoginPromptsURLs { baseURL?: string; hostURL?: string; } interface LoginPromptsParamsAnswer { baseURL: string; hostURL: string; username: string; password: string; } interface LoginPromptsScopeAnswer { baseURL: string; hostURL: string; scope: string | boolean; } interface LoginPromptsInitialAnswer { baseURL?: string; hostURL?: string; username?: string; password?: string; scope?: string | boolean; } declare function displayLoginPrompts(URLs: LoginPromptsURLs, scopeMap: Map, options: { isNeedHostURL?: boolean; } & LoginCLIOptionsSchema): Promise; declare function convertUsernameField(username: string): { email: string; phone?: undefined; } | { phone: string; email?: undefined; }; declare function convertPromptsAnswerToLoginParams(answers: LoginPromptsAnswer, scopeMap: Map): Promise; declare function fetchUserProfile(params: LoginRequestParamsSchema): Promise; declare function getLocalConfigContent(dirPath?: string): Promise; declare function updateLocalConfig(content: Record, options?: { cwd: string; strategy: 'merge' | 'replace'; }): Promise; export { fetchUserProfile, convertUsernameField, convertPromptsAnswerToLoginParams, getLocalConfigContent, displayLoginPrompts, updateLocalConfig, }; export type { LoginPromptsAnswer, LoginPromptsParamsAnswer, LoginPromptsScopeAnswer, LoginPromptsInitialAnswer, }; //# sourceMappingURL=index.d.ts.map