import type { JsonObj } from '../../result.js'; import { BaseCommand } from '../../index.js'; export default class WorkspaceSwitch extends BaseCommand { static args: { slug: import("@oclif/core/lib/interfaces/parser.js").Arg>; }; static description: string; static examples: string[]; run(): Promise; /** * Iterate every cached org and merge its workspace list. Each org has its * own access token; one token only sees one org's workspaces. We tolerate * a single org's failure (verbose-log it) so a stale token in one org * doesn't block switching into a working one. */ private fetchAllOrgsWorkspaces; /** * Resolve the user's positional arg against the candidate list. * * - `org/ws` form (preferred) → match by both org slug and workspace slug. * - UUID → workspaceId match (kept for back-compat with scripts that * pass IDs straight through). Bare slug is rejected with the same * migration message used elsewhere in the CLI. */ private matchByArg; }