/** * Resolve which company a command targets: explicit --org wins, then the * active company (`agent-cards companies use`), then a single-company account * resolves itself, then an interactive pick. Non-interactive multi-company * accounts exit 2 — automation must pass --org or set an active company. */ export declare function resolveOrgId(orgFlag?: string): Promise; export interface ResolveOrCreateOptions { /** Explicit `--org ` — wins over everything else. */ org?: string; /** `--company-name ` — used to create an org in non-interactive mode. */ companyName?: string; /** A sane default company name for the interactive create prompt (e.g. the repo name). */ defaultName?: string; } /** * Like {@link resolveOrgId}, but a brand-new self-serve user with NO company is * never dead-ended: we create one for them (mirroring the login/onboard flow) * instead of erroring out. Decision table (after `--org` and active-company * short-circuits): * * orgs | interactive | non-interactive (agent/CI/no-TTY) * -----+------------------------+----------------------------------------- * 0 | prompt for a name, | --company-name → create; else exit 2 * | create it | `company_required` * 1 | use it silently | use it silently * N | picker | require --org; else exit 2 `org_ambiguous` */ export declare function resolveOrCreateOrgId(opts: ResolveOrCreateOptions, ctx: { interactive: boolean; }): Promise; //# sourceMappingURL=org-resolve.d.ts.map