import { ApiClient } from "./api-client.js"; export interface WorkspaceChoice { workspace_id: string; workspace_name?: string; organization_id?: string; organization_name?: string; role?: string; raw: Record; } export interface WorkspaceSummary { workspace_id: string; workspace_name: string | null; organization_id: string | null; organization_name: string | null; role: string | null; } export type WorkspaceSelectionDecision = { kind: "none"; } | { kind: "selected"; workspace: WorkspaceChoice; } | { kind: "prompt"; workspaces: WorkspaceChoice[]; } | { kind: "required"; workspaces: WorkspaceChoice[]; }; export declare function normalizeWorkspaceRows(rows: unknown): WorkspaceChoice[]; export declare function fetchWorkspaceChoices(client: ApiClient, opts?: { organizationId?: string; loadMembers?: boolean; }): Promise; export declare function formatWorkspaceLabel(workspace: WorkspaceChoice): string; export declare function summarizeWorkspace(workspace: WorkspaceChoice): WorkspaceSummary; export declare function needsWorkspaceDiscovery(currentWorkspaceId?: string): boolean; export declare function resolveLoginWorkspaceId(opts: { explicitWorkspaceId?: string; existingWorkspaceId?: string; sameAccount: boolean; }): string | undefined; export declare function decideWorkspaceSelection(workspaces: WorkspaceChoice[], isInteractive: boolean): WorkspaceSelectionDecision; export declare function promptForWorkspace(workspaces: WorkspaceChoice[]): Promise;