import type { ProjectBundle, ProjectIconsResponse, ProjectIdAndToken, RequiredPackages, StyleConfigResponse, StyleTokensMap, VersionResolution } from "../api"; import { AuthConfig } from "../utils/config-utils"; export interface MockProject { projectId: string; branchName: string; projectApiToken: string; version: string; projectName: string; components: MockComponent[]; dependencies: { [projectId: string]: string; }; } export interface MockComponent { id: string; name: string; projectId?: string; branchName?: string; version?: string; } export declare function clear(): void; /** * Call this in test to setup the data model * @param id componentId * @param comp MockComponent */ export declare function addMockProject(proj: MockProject): void; /** * Used to interpret data that's stored in the "codegen" files from the Mock server * @param data */ export declare function stringToMockComponent(data?: string): MockComponent | undefined; export declare function getMockProject(projectId: string, branchName: string, version: string): MockProject | undefined; export declare class PlasmicApi { private auth; constructor(auth: AuthConfig); genStyleConfig(): Promise; resolveSync(projects: { projectId: string; branchName: string; versionRange: string; componentIdOrNames: readonly string[] | undefined; projectApiToken?: string; }[], recursive?: boolean): Promise; getCurrentUser(): Promise; projectComponents(projectId: string, branchName: string, opts: { platform: string; newCompScheme: "blackbox" | "direct"; existingCompScheme: Array<[string, "blackbox" | "direct"]>; componentIdOrNames: readonly string[] | undefined; version: string; }): Promise; uploadBundle(_projectId: string, _bundleName: string, _bundleJs: string, _css: string[], _metaJson: string): Promise; projectStyleTokens(_projectId: string, _branchName: string): Promise; projectIcons(_projectId: string, _branchName: string): Promise; latestCodegenVersion(): Promise; requiredPackages(): Promise; connectSocket(): void; lastProjectIdsAndTokens: ProjectIdAndToken[]; attachProjectIdsAndTokens(idsAndTokens: ProjectIdAndToken[]): void; }