/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type UseMutationResult, type UseQueryResult } from '@tanstack/react-query'; import type { QueryOverrides } from './types.js'; import type { RequestOptions, WorkspaceDeployOptions, WorkspaceDeployResult, WorkspaceInfo, WorkspaceStatusResult } from '@elaraai/e3-api-client'; import type { WorkspaceState } from '@elaraai/e3-types'; export declare function useWorkspaceList(url: string, repo: string, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): UseQueryResult; export declare function useWorkspaceCreate(url: string, repo: string, requestOptions?: RequestOptions): UseMutationResult; /** * Copy a workspace within its repository: the target becomes the source as it * is now, made or replaced whole, its refs only written. * * @param url - Base URL of the e3 API server * @param repo - Repository name * @param requestOptions - Request options including auth token * @returns A mutation, given the workspace copied and the one it is copied to, * whose data is the target as the workspace list gives it */ export declare function useWorkspaceCopy(url: string, repo: string, requestOptions?: RequestOptions): UseMutationResult; export declare function useWorkspaceGet(url: string, repo: string, name: string | null, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): UseQueryResult; /** A workspace's status, read once per poll: one request attempt each, its * next poll being its retry. */ export declare function useWorkspaceStatus(url: string, repo: string, name: string | null, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): UseQueryResult; export declare function useWorkspaceRemove(url: string, repo: string, requestOptions?: RequestOptions): UseMutationResult; /** * Deploy a package to a workspace. * * @remarks * The server runs the deploy as a job, which the mutation polls, so it * settles once the deploy has finished. * * @param url - Base URL of the e3 API server * @param repo - Repository name * @param requestOptions - Request options including auth token * @returns A mutation, given the workspace, the package reference and the * deploy's options — what it does with a record it cannot keep and with an * input someone set, and whether it only plans — whose data is what the * deploy decided for each record, index and input */ export declare function useWorkspaceDeploy(url: string, repo: string, requestOptions?: RequestOptions): UseMutationResult; export declare function useWorkspaceExport(url: string, repo: string, name: string | null, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): UseQueryResult, Error>; //# sourceMappingURL=workspaces.d.ts.map