import { a as ReportResult, i as ReportPeriod, n as ReportError, o as ReportStats, r as ReportFiles, t as ReportDetails } from "./types-EvlWp0P4.mjs"; import "./types-DHTY3l5T.mjs"; import "./api-CAycTX8Z.mjs"; import "./index-DIYCM-ZC.mjs"; import "./types-D3Or9gzv.mjs"; import "./index-DdWYJWZx.mjs"; import { r as Task } from "./types-KtXkz5Z7.mjs"; //#region src/modules/reports/methods.d.ts type ReportMap = Record; /** * Get all available reports * * @returns Object with keys being task IDs, values being report IDs */ declare function getAllReports(): Promise>; /** * Get all available reports of a task * * @param taskOrId Task or Task's id * * @returns Object with keys being report IDs, values being files */ declare function getReportsOfTask(taskOrId: Omit | string): Promise; /** * Get a report file as a blob * * @param taskOrId Task or Task's id * @param path Path to the file * * @returns The blob */ declare function getFileAsBlob(taskOrId: Omit | string, path: string): Promise; /** * Get a report file as an array buffer * * @param taskOrId Task or Task's id * @param path Path to the file * * @returns The array buffer */ declare function getFileAsArrayBuffer(taskOrId: Omit | string, path: string): Promise; /** * Get a report file as a stream * * @param taskOrId Task or Task's id * @param path Path to the file * * @returns The stream */ declare function getFileAsStream(taskOrId: Omit | string, path: string): Promise>>; /** * Get a report file as a text * * @param taskOrId Task or Task's id * @param path Path to the file * * @returns The text */ declare function getFileAsText(taskOrId: Omit | string, path: string): Promise; /** * Get a report file as a JSON object * The file should end with `.det.json` * * @param taskOrId Task or Task's id * @param path Path to the file * * @returns The JSON object */ declare function getFileAsJson(taskOrId: Omit | string, path: `${string}.det.json`): Promise; /** * Start a report generation * * @param taskOrId Task or Task's id * @param targets Override targets, also enable first level of debugging * @param period Override period, must match task's recurrence * * @returns Data to get job, and so the progress of the generation */ declare function generateReportOfTask(taskOrId: Omit | string, period?: { start: Date; end: Date; }, targets?: string[]): Promise<{ id: string; }>; //#endregion export { type ReportDetails, type ReportError, type ReportFiles, type ReportPeriod, type ReportResult, type ReportStats, generateReportOfTask, getAllReports, getFileAsArrayBuffer, getFileAsBlob, getFileAsJson, getFileAsStream, getFileAsText, getReportsOfTask }; //# sourceMappingURL=reports.d.mts.map