import { type Environment, type EnvironmentSource } from '../config/environments.js'; import { type WhoamiResponse } from '../auth/subscribe-flow.js'; export type { WhoamiResponse }; /** The identity, plus which api-server answered and why — "where am I" is half the question. */ export interface WhoamiResult { me: WhoamiResponse; environment: Environment; source: EnvironmentSource; } /** * `bitmagic whoami` — who the CLI is authenticated as, and whether that account * may use it. * * The endpoint behind this sits outside the CLI's entitlement gate, so it * answers for an unsubscribed creator too — that is the whole point: "why is * this refusing me" needs an answer that is not itself refused. */ export declare function runWhoami(explicitEnv?: string): Promise; /** * PURE. The report, as a label-aligned block. * * The environment comes FIRST, because every line under it is an answer from * that one api-server — a session pointed at the wrong one is otherwise * invisible until something fails. */ export declare function formatWhoamiReport({ me, environment, source }: WhoamiResult): string; export declare const whoamiCommand: import("citty").CommandDef<{ readonly env: { readonly type: "string"; readonly description: "Environment to query (dev, prod, local)."; }; readonly json: { readonly type: "boolean"; readonly description: "Print the result as JSON on stdout; all progress goes to stderr."; }; }>;