import { DirectusFolder } from "../../../schema/folder.js"; import { DirectusFile } from "../../../schema/file.js"; import { AssetResponse, AssetsQuery } from "../../../types/assets.js"; import { RestCommand } from "../../types.js"; //#region src/rest/commands/read/assets.d.ts /** * Read the contents of a file as a ReadableStream * * @param {string} key * @param {AssetsQuery} query * @returns {ReadableStream} */ declare const readAssetRaw: (key: DirectusFile["id"], query?: AssetsQuery) => RestCommand, Schema>; /** * Read the contents of a file as a Blob * * @param {string} key * @param {AssetsQuery} query * @returns {Blob} */ declare const readAssetBlob: (key: DirectusFile["id"], query?: AssetsQuery) => RestCommand; /** * Read the contents of a file as a ArrayBuffer * * @param {string} key * @param {AssetsQuery} query * @returns {ArrayBuffer} */ declare const readAssetArrayBuffer: (key: DirectusFile["id"], query?: AssetsQuery) => RestCommand; /** * Download a ZIP archive containing the specified files. * * @param keys An array of file IDs to include in the ZIP archive, must contain at least one ID. * @param options */ declare const downloadFilesZip: (keys: DirectusFile["id"][], options?: { output: R; }) => RestCommand; /** * Download a ZIP archive of an entire folder tree. * * @param key The root folder ID to download. * @param options */ declare const downloadFolderZip: (key: DirectusFolder["id"], options?: { output: R; }) => RestCommand; //#endregion export { downloadFilesZip, downloadFolderZip, readAssetArrayBuffer, readAssetBlob, readAssetRaw }; //# sourceMappingURL=assets.d.ts.map