import type { Organization } from '@bitmovin/api-sdk'; export declare const ROOT_ORGANIZATION = "ROOT_ORGANIZATION"; export declare const SUB_ORGANIZATION = "SUB_ORGANIZATION"; export interface OrganizationRow extends Record { id: string; name: string; /** ROOT_ORGANIZATION or SUB_ORGANIZATION, derived from parentId when absent. */ type: string; /** Parent organization id, or null for a root organization. */ parentId: string | null; /** Whether this is the organization the CLI currently targets. */ active: boolean; } export declare const ORGANIZATION_COLUMNS: string[]; /** * Lists every organization the credential can see — roots and sub-orgs in one * flat list, each sub-org carrying its `parentId`. * * `GET /account/organizations/{id}/sub-organizations` is deliberately not used: * it answers `1001 An organization with the given id does not exist` for org ids * that are plainly visible in this listing, so the hierarchy is derived from * `parentId` instead. * * Takes no SDK client on purpose: the SDK cannot express this call (see below), so * constructing one would resolve credentials and refresh OAuth for an object that is * then discarded. * * Paged through the REST helper rather than the SDK: `organizations.list()` takes * no arguments, so it silently returns only the API's default first page. On an * account with more organizations than that page holds, sub-orgs whose parent sits * on a later page would be rendered as roots, and `--parent` would report a * visible organization as invisible. */ export declare function listOrganizations(apiKey?: string, pageSize?: number): Promise; /** * Flattens organizations into display rows ordered parent-first: every root is * immediately followed by its sub-organizations, so the hierarchy stays readable * in a flat table. Sub-orgs whose parent is not visible to the credential are * emitted at the top level, keeping their `parentId` so nothing is hidden. */ export declare function toOrganizationRows(orgs: Organization[], activeOrgId?: string): OrganizationRow[]; //# sourceMappingURL=organizations.d.ts.map