/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { Config } from '@aetherai/aether-core'; import { AuthType } from '@aetherai/aether-core'; import type { LoadedSettings } from '../../config/settings.js'; export interface OpenAICredentials { apiKey?: string; baseUrl?: string; model?: string; providerId?: string; } import { type AlibabaStandardRegion } from '../../constants/alibabaStandardApiKey.js'; import { CodingPlanRegion } from '../../constants/codingPlan.js'; import type { HistoryItem } from '../types.js'; import { AuthState } from '../types.js'; export type { aetherAuthState } from '../hooks/useAetherAuth.js'; export declare const useAuthCommand: (settings: LoadedSettings, config: Config, addItem: (item: Omit, timestamp: number) => void) => { authState: AuthState; setAuthState: import("react").Dispatch>; authError: string | null; onAuthError: (error: string | null) => void; isAuthDialogOpen: boolean; isAuthenticating: boolean; pendingAuthType: AuthType | undefined; aetherAuthState: import("../hooks/useAetherAuth.js").aetherAuthState; handleAuthSelect: (authType: AuthType | undefined, credentials?: OpenAICredentials) => Promise; handleCodingPlanSubmit: (apiKey: string, region?: CodingPlanRegion) => Promise; handleAlibabaStandardSubmit: (apiKey: string, region: AlibabaStandardRegion, modelIdsInput: string) => Promise; openAuthDialog: () => void; cancelAuthentication: () => void; };