import { type CommonSettingsStore } from "../common-settings-store.js"; import type { ProviderMenuAdapter } from "../menu-runtime.js"; import { type AccountEntry, type StoreFile, type StoreWriteDebugMeta } from "../store.js"; type AuthClient = { auth: { set: (input: { path: { id: string; }; body: { type: "oauth"; refresh: string; access: string; expires: number; enterpriseUrl?: string; }; }) => Promise; }; tui?: { showToast?: (options: { body: { message: string; variant: "success" | "warning"; }; }) => Promise; }; }; type DebugMeta = StoreWriteDebugMeta; type AdapterDependencies = { client: AuthClient; readStore?: () => Promise; writeStore?: (store: StoreFile, meta?: DebugMeta) => Promise; readAuth?: (filePath?: string) => Promise>; authorizeNewAccount?: (store: StoreFile) => Promise; now?: () => number; fetchUser?: (entry: AccountEntry) => Promise<{ login?: string; email?: string; orgs?: string[]; } | undefined>; fetchModels?: (entry: AccountEntry) => Promise; fetchQuota?: (entry: AccountEntry) => Promise; configureDefaultAccountGroup?: (store: StoreFile, selectors?: { selectAccounts?: (options: Array<{ label: string; value: string; hint?: string; }>) => Promise; }) => Promise; configureModelAccountAssignments?: (store: StoreFile, selectors?: { selectModel?: (options: Array<{ label: string; value: string; hint?: string; }>) => Promise; selectAccounts?: (options: Array<{ label: string; value: string; hint?: string; }>) => Promise; }) => Promise; clearAllAccounts?: (store: StoreFile) => void; removeAccountFromStore?: (store: StoreFile, name: string) => void; activateAddedAccount?: (input: { store: StoreFile; name: string; switchAccount: () => Promise; writeStore: (store: StoreFile, meta?: StoreWriteDebugMeta) => Promise; now?: () => number; }) => Promise; logSwitchHint?: () => void; readCommonSettings?: () => Promise; writeCommonSettings?: (settings: CommonSettingsStore, meta?: DebugMeta) => Promise; }; export declare function createCopilotMenuAdapter(inputDeps: AdapterDependencies): ProviderMenuAdapter; export {};