/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type UseQueryResult } from '@tanstack/react-query'; import type { QueryOverrides } from './types.js'; import type { RequestOptions, TaskDetails, TaskListItem, ExecutionListItem } from '@elaraai/e3-api-client'; export declare function useTaskList(url: string, repo: string, workspace: string | null, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): UseQueryResult; /** * The query key of a task's details, which `useTaskGet` and `useTaskDetails` * share: a preview and the host that opened it read the task once. * * @param url - Base URL of the e3 API server * @param repo - Repository name * @param workspace - Workspace name * @param name - The task * @returns The key */ export declare function taskDetailsQueryKey(url: string, repo: string, workspace: string | null, name: string | null): readonly unknown[]; export declare function useTaskGet(url: string, repo: string, workspace: string | null, name: string | null, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): UseQueryResult; export declare function useTaskExecutionList(url: string, repo: string, workspace: string | null, taskName: string | null, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): UseQueryResult; //# sourceMappingURL=tasks.d.ts.map