import { type AccountSlot } from "./accounts.js"; import { readPool, writePool } from "./store.js"; /** * Shared `/-account` command surface. * * Mirrors stock senpi's `/claude-account` so multi-account management feels the * same whether the provider is stock or supplied by this addon. */ export interface AccountCommandDeps { agentDir: string; providerId: string; /** Run the provider's login flow and return the slot to store. */ login: (name: string) => Promise; readPoolState?: typeof readPool; writePoolState?: typeof writePool; now?: () => number; } export interface CommandOutput { text: string; level: "info" | "error"; } declare const USAGE: string; /** * Execute one account subcommand and return the message to show. * * Pure with respect to the terminal: the caller decides how to render, which * keeps this testable without a senpi UI. */ export declare function runAccountCommand(deps: AccountCommandDeps, rawArgs: string): Promise; export { USAGE as ACCOUNT_COMMAND_USAGE };