/** * Read solution metadata from UiPath Studio Web. */ import { type PreviewSolutionDto } from "@uipath/studioweb-sdk"; import type { StudioWebConfig, StudioWebSolutionProject } from "./types"; /** * Fetch the projects of a Studio Web solution * (`Solution_GetSolution` → `GET /api/Solution/{solutionId}`). * * Each project carries both the cloud project `id` and the design-time * `designId` (the `Projects[].Id` written to the local `.uipx` manifest), so * callers can map a local design-time ID to the real Studio Web project ID. * * Returns `undefined` when the solution does not exist (404) so callers can * produce a targeted error. Throws on any other non-2xx status. */ export declare function getStudioWebSolutionProjects(config: StudioWebConfig, organizationName: string, solutionId: string): Promise; /** Options for {@link listStudioWebSolutions}. */ export interface ListStudioWebSolutionsOptions { /** Server-side keyword match against solution and project names. */ name?: string; /** Page size. Studio Web caps a page at 100 rows. */ limit?: number; /** * Rows to skip before the first returned one. Paging spans Studio Web's * combined solutions + standalone-projects result set (the endpoint pages * over both; only the solutions are returned here). */ skip?: number; /** Server column to sort by (e.g. `lastModifiedTime`). */ sortBy?: string; /** Sort direction. */ sortOrder?: "asc" | "desc"; } /** One page of Studio Web solutions. */ export interface StudioWebSolutionsPage { /** Solutions in this page, verbatim from the Studio Web response. */ solutions: PreviewSolutionDto[]; /** * Rows the server returned in this page — solutions plus the standalone * projects that were dropped. Callers paging with `skip` must advance by * this count, not by `solutions.length`. */ combinedCount: number; /** * Total matching rows as reported by the server. Counts the combined * solutions + standalone-projects result set, not just solutions. */ totalCount?: number; } /** * List the current user's Studio Web solutions * (`Solution_SearchSolutionsAndProjects` → * `GET /api/Solution/SearchSolutionsAndProjects`). * * The endpoint also returns standalone projects; those are dropped — callers * get solutions only. Throws on any non-2xx status. */ export declare function listStudioWebSolutions(config: StudioWebConfig, organizationName: string, options?: ListStudioWebSolutionsOptions): Promise;