import type { Command } from 'commander'; import type { TwistTokenStore } from '../../lib/auth-provider.js'; /** * Attach `tw auth status` via cli-core's generic `attachStatusCommand`. * * `TwistTokenStore.active()` returns a snapshot whenever a token resolves * (per the adapter's documented contract — see `auth-provider.ts`), so * `fetchLive` covers every token-present path: secure-store, plaintext * config fallback, env-token mode, and manual `tw auth token`. The * snapshot's token is reused inside `gatherStatusData` so credentials are * read once per invocation. `onNotAuthenticated` only fires when nothing * is stored — it throws `NoTokenError` so the standard CliError envelope * reaches the operator unchanged. */ export declare function attachTwistStatusCommand(auth: Command, store: TwistTokenStore): Command; //# sourceMappingURL=status.d.ts.map