import type { CreateWorkspaceRequest, UpdateWorkspaceRequest, Workspace } from "@opengeni/sdk"; import { type ClientOverride } from "../provider.js"; export type UseWorkspacesOptions = Pick & { pollIntervalMs?: number | undefined; enabled?: boolean | undefined; }; export type UseWorkspacesResult = { workspaces: Workspace[]; loading: boolean; error: Error | null; refresh: () => Promise; create: (request: CreateWorkspaceRequest) => Promise; update: (workspaceId: string, request: UpdateWorkspaceRequest) => Promise; mutating: boolean; mutationError: Error | null; clearMutationError: () => void; }; /** * The caller's workspaces (workspace switchers, onboarding). Not scoped to * the provider's workspace, so it only needs the client. */ export declare function useWorkspaces(options?: UseWorkspacesOptions): UseWorkspacesResult;