import type { Me } from "./backend.js"; export type OrgSource = "flag" | "env" | "config"; export interface ActiveOrgInput { /** --org */ flag?: string; /** VINCENTT_ORG */ env?: string; /** ~/.vincentt/config.json activeOrg */ config?: string; } /** flag → env → machine config. Nothing else; no inference, no folder-derived default. */ export declare function activeOrgSlug(input: ActiveOrgInput): { slug: string; source: OrgSource; } | undefined; export interface ResolvedOrg { slug: string; name: string; kind: "personal" | "team"; } /** * Pair a resolved slug with the membership `/me` reports for it. A slug that * names no membership resolves to NOTHING rather than to a plausible default — * acting in an org the creator did not name is silent retargeting. * * With no slug configured at all, the personal org is the fallback, matching what * `vincentt login` already prints as the active org on a fresh machine. */ export declare function resolveActiveOrg(me: Me, input: ActiveOrgInput): ResolvedOrg | undefined;