/** Workspace entry from login or workspaces API (field names vary). */ export interface WorkspaceSummary { workspace_id?: string; workspace_name?: string; _id?: string; name?: string; tag?: string; default?: boolean; accepted?: boolean; } export declare function workspaceId(w: WorkspaceSummary): string; export declare function workspaceLabel(w: WorkspaceSummary): string; /** Human-readable workspace tag for .ductape/config.json (slug of name, or explicit tag). */ export declare function workspaceTag(w: WorkspaceSummary): string; export declare function slugifyTag(value: string): string; export declare function normalizeWorkspaces(raw: unknown[]): WorkspaceSummary[]; export declare function getActiveWorkspace(): { id: string; name?: string; tag?: string; } | null; export declare function setActiveWorkspace(id: string, name?: string, tag?: string): void; export declare function clearActiveWorkspace(): void; export declare function fetchWorkspaces(profile?: string): Promise; export declare function findWorkspace(workspaces: WorkspaceSummary[], selector: string): WorkspaceSummary | undefined; export declare function printWorkspaceTable(workspaces: WorkspaceSummary[], activeId?: string | null): void; export declare function promptWorkspaceSelection(workspaces: WorkspaceSummary[], opts?: { message?: string; }): Promise; export declare function applyActiveWorkspace(workspace: WorkspaceSummary, opts?: { syncProject?: boolean; dir?: string; }): Promise; export declare function selectAndApplyWorkspace(opts?: { profile?: string; selector?: string; skipPrompt?: boolean; syncProject?: boolean; dir?: string; }): Promise; export declare function finalizeLoginWorkspace(opts?: { profile?: string; workspace?: string; skipPrompt?: boolean; }): Promise;