import { type Workspace } from '@scalar/oas-utils/entities/workspace'; import type { StoreContext } from '../store/store-context'; /** Create storage for workspace entities */ export declare function createStoreWorkspaces(useLocalStorage: boolean): { workspaces: Record; name: string; description: string; collections: (string & import("zod").$brand<"collection">)[]; environments: Record; activeEnvironmentId: string; cookies: (string & import("zod").$brand<"cookie">)[]; themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none"; selectedHttpClient: { targetKey: string; clientKey: string; }; hotKeyConfig?: { modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[]; hotKeys?: Partial> | undefined; } | undefined; proxyUrl?: string | undefined; }>; workspaceMutators: { add: (item: { uid: string & import("zod").$brand<"workspace">; name: string; description: string; collections: (string & import("zod").$brand<"collection">)[]; environments: Record; activeEnvironmentId: string; cookies: (string & import("zod").$brand<"cookie">)[]; themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none"; selectedHttpClient: { targetKey: string; clientKey: string; }; hotKeyConfig?: { modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[]; hotKeys?: Partial> | undefined; } | undefined; proxyUrl?: string | undefined; }) => void; delete: (uid: (string & import("zod").$brand<"workspace">) | null | undefined) => void; set: (item: { uid: string & import("zod").$brand<"workspace">; name: string; description: string; collections: (string & import("zod").$brand<"collection">)[]; environments: Record; activeEnvironmentId: string; cookies: (string & import("zod").$brand<"cookie">)[]; themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none"; selectedHttpClient: { targetKey: string; clientKey: string; }; hotKeyConfig?: { modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[]; hotKeys?: Partial> | undefined; } | undefined; proxyUrl?: string | undefined; }) => void; edit:

(uid: (string & import("zod").$brand<"workspace">) | null | undefined, path: P, value: P extends "proxyUrl" | "description" | "uid" | "name" | "cookies" | "collections" | "environments" | "hotKeyConfig" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" ? { uid: string & import("zod").$brand<"workspace">; name: string; description: string; collections: (string & import("zod").$brand<"collection">)[]; environments: Record; activeEnvironmentId: string; cookies: (string & import("zod").$brand<"cookie">)[]; themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none"; selectedHttpClient: { targetKey: string; clientKey: string; }; hotKeyConfig?: { modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[]; hotKeys?: Partial> | undefined; } | undefined; proxyUrl?: string | undefined; }[P] : P extends `${infer K}.${infer R}` ? K extends "proxyUrl" | "description" | "uid" | "name" | "cookies" | "collections" | "environments" | "hotKeyConfig" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" ? R extends import("@scalar/object-utils/nested").Path<{ uid: string & import("zod").$brand<"workspace">; name: string; description: string; collections: (string & import("zod").$brand<"collection">)[]; environments: Record; activeEnvironmentId: string; cookies: (string & import("zod").$brand<"cookie">)[]; themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none"; selectedHttpClient: { targetKey: string; clientKey: string; }; hotKeyConfig?: { modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[]; hotKeys?: Partial> | undefined; } | undefined; proxyUrl?: string | undefined; }[K]> ? import("@scalar/object-utils/nested").PathValue<{ uid: string & import("zod").$brand<"workspace">; name: string; description: string; collections: (string & import("zod").$brand<"collection">)[]; environments: Record; activeEnvironmentId: string; cookies: (string & import("zod").$brand<"cookie">)[]; themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none"; selectedHttpClient: { targetKey: string; clientKey: string; }; hotKeyConfig?: { modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[]; hotKeys?: Partial> | undefined; } | undefined; proxyUrl?: string | undefined; }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void; untrackedEdit:

(uid: string & import("zod").$brand<"workspace">, path: P, value: P extends "proxyUrl" | "description" | "uid" | "name" | "cookies" | "collections" | "environments" | "hotKeyConfig" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" ? { uid: string & import("zod").$brand<"workspace">; name: string; description: string; collections: (string & import("zod").$brand<"collection">)[]; environments: Record; activeEnvironmentId: string; cookies: (string & import("zod").$brand<"cookie">)[]; themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none"; selectedHttpClient: { targetKey: string; clientKey: string; }; hotKeyConfig?: { modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[]; hotKeys?: Partial> | undefined; } | undefined; proxyUrl?: string | undefined; }[P] : P extends `${infer K}.${infer R}` ? K extends "proxyUrl" | "description" | "uid" | "name" | "cookies" | "collections" | "environments" | "hotKeyConfig" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" ? R extends import("@scalar/object-utils/nested").Path<{ uid: string & import("zod").$brand<"workspace">; name: string; description: string; collections: (string & import("zod").$brand<"collection">)[]; environments: Record; activeEnvironmentId: string; cookies: (string & import("zod").$brand<"cookie">)[]; themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none"; selectedHttpClient: { targetKey: string; clientKey: string; }; hotKeyConfig?: { modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[]; hotKeys?: Partial> | undefined; } | undefined; proxyUrl?: string | undefined; }[K]> ? import("@scalar/object-utils/nested").PathValue<{ uid: string & import("zod").$brand<"workspace">; name: string; description: string; collections: (string & import("zod").$brand<"collection">)[]; environments: Record; activeEnvironmentId: string; cookies: (string & import("zod").$brand<"cookie">)[]; themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none"; selectedHttpClient: { targetKey: string; clientKey: string; }; hotKeyConfig?: { modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[]; hotKeys?: Partial> | undefined; } | undefined; proxyUrl?: string | undefined; }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void; undo: (uid: string & import("zod").$brand<"workspace">) => void; redo: (uid: string & import("zod").$brand<"workspace">) => void; reset: () => void; }; }; /** Workspace entities that require store context */ export declare function extendedWorkspaceDataFactory({ workspaces, workspaceMutators, collectionMutators, requestMutators, requestExampleMutators, }: StoreContext): { addWorkspace: (payload?: Partial) => { uid: string & import("zod").$brand<"workspace">; name: string; description: string; collections: (string & import("zod").$brand<"collection">)[]; environments: Record; activeEnvironmentId: string; cookies: (string & import("zod").$brand<"cookie">)[]; themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none"; selectedHttpClient: { targetKey: string; clientKey: string; }; hotKeyConfig?: { modifiers: ("default" | "Meta" | "Control" | "Shift" | "Alt")[]; hotKeys?: Partial> | undefined; } | undefined; proxyUrl?: string | undefined; }; deleteWorkspace: (uid: Workspace["uid"]) => void; }; //# sourceMappingURL=workspace.d.ts.map