import type { API } from "./raw"; /** * The class that encapsulates the organizations API * @internal */ export declare class OrganizationsAPI { private api; constructor(api: API); /** * Opens the org modal */ openModal(withId?: ((teamId: string) => void) | null, onClose?: (() => void) | null): void; /** * Lists organizations * @returns a list of teams user is part of */ list(): Promise; /** * Gets the organization info for a given ID or handle. * @param query - The ID or handle of the organization, requires one of the two. */ get(query?: { orgId?: string; handle?: string; }): Promise; /** * Teams */ teams: { /** * Lists teams * @returns a list of teams user is part of */ list: (query?: { type?: "user" | "org"; }) => Promise; }; }