/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type QueryWords } from "./model/words.js"; import { type DownloadFormat } from "./results.js"; import type { RunOutput, RunState } from "./run.js"; /** * A result's rows as CSV: one row per output, its header the fields' names. * * @param output - the run's result * @param words - the words, for a nested value * @returns the CSV's bytes, UTF-8 */ export declare function resultCsv(output: RunOutput, words: QueryWords): Uint8Array; /** * A result with its type, self-describing beast2: what the run returned. * * @param output - the run's result * @returns the bytes */ export declare function resultBeast2(output: RunOutput): Uint8Array; /** * Downloads a run's result, and says so. * * @param run - the run, answered with a result * @param format - CSV or BEAST2 * @param name - the query's name: the file's * @param words - the words * @returns the note the results show after it; `undefined` when the run has no * result in hand — none, or one read a page at a time (#1113) */ export declare function downloadResult(run: RunState, format: DownloadFormat, name: string, words: QueryWords): string | undefined; //# sourceMappingURL=downloads.d.ts.map