import { Workspace, WorkspaceIncludeParam } from "../../interfaces/models/Workspace"; import { PaginatedResponse } from "../../interfaces/PaginatedResponse"; export interface FetchManyWorkspacesParams { page?: number; limit?: number; /** * Include flags, as an array or a comma-separated string. `memberCount` adds * each row's DIRECT member count — one grouped query over the page that was * returned, so a switcher UI does not need a follow-up read per workspace. * Omitted, the field is absent from every row. */ include?: WorkspaceIncludeParam; } /** * Leaf fetcher for the caller's direct-membership + owned workspaces. The actor * is derived from the bearer token — no actor field is sent. * * Params are built conditionally rather than passed through: the workspaces * endpoints refuse any undeclared top-level query key with a 400, so an * `undefined` slot must not be spread into the request. */ declare function useFetchManyWorkspaces(): (params?: FetchManyWorkspacesParams) => Promise>; export default useFetchManyWorkspaces;