import React from "react"; /** The TUI's account commands: `/login [url]`, `/logout`, `/whoami`, `/help`. */ export type AccountAction = "login" | "logout" | "whoami" | "help"; export declare const SLASH_COMMANDS: ReadonlyArray<{ usage: string; description: string; }>; interface AccountViewProps { action: AccountAction; /** `/login `: sign in to this server instead of the default. */ argument?: string; /** Leave the view; `changed` is true when the stored credential changed. */ onDone: (changed: boolean) => void; } export declare function AccountView({ action, argument, onDone }: AccountViewProps): React.JSX.Element; export {};