/** * Copyright (c) 2025 Elara AI Pty Ltd * Licensed under BSL 1.1. See LICENSE for details. */ import { type TaskObject } from '@elaraai/e3-types'; import type { StorageBackend } from './storage/interfaces.js'; /** * List task names in a package. * * @param storage - Storage backend * @param repo - Repository identifier * @param name - Package name * @param version - Package version * @returns Array of task names * @throws If package not found */ export declare function packageListTasks(storage: StorageBackend, repo: string, name: string, version: string): Promise; /** * Get task details from a package. * * @param storage - Storage backend * @param repo - Repository identifier * @param name - Package name * @param version - Package version * @param taskName - Name of the task * @returns The TaskObject containing runner, inputs, and output * @throws {PackageNotFoundError} If package not found * @throws {TaskNotFoundError} If task not found in package */ export declare function packageGetTask(storage: StorageBackend, repo: string, name: string, version: string, taskName: string): Promise; /** * List task names in a workspace. * * Tasks are defined by the deployed package. * * @param storage - Storage backend * @param repo - Repository identifier * @param ws - Workspace name * @returns Array of task names * @throws If workspace not found or not deployed */ export declare function workspaceListTasks(storage: StorageBackend, repo: string, ws: string): Promise; /** * Get task hash from a workspace. * * @param storage - Storage backend * @param repo - Repository identifier * @param ws - Workspace name * @param taskName - Name of the task * @returns The hash of the TaskObject * @throws {WorkspaceNotFoundError} If workspace not found * @throws {WorkspaceNotDeployedError} If workspace not deployed * @throws {TaskNotFoundError} If task not found */ export declare function workspaceGetTaskHash(storage: StorageBackend, repo: string, ws: string, taskName: string): Promise; /** * Get task details from a workspace. * * Tasks are defined by the deployed package. * * @param storage - Storage backend * @param repo - Repository identifier * @param ws - Workspace name * @param taskName - Name of the task * @returns The TaskObject containing runner, inputs, and output * @throws If workspace not deployed or task not found */ export declare function workspaceGetTask(storage: StorageBackend, repo: string, ws: string, taskName: string): Promise; //# sourceMappingURL=tasks.d.ts.map