import { DirectusFile } from "../../../schema/file.js"; import { NestedPartial } from "../../../types/utils.js"; import { ApplyQueryFields } from "../../../types/output.js"; import { Query } from "../../../types/query.js"; import { RestCommand } from "../../types.js"; //#region src/rest/commands/update/files.d.ts type UpdateFileOutput, Item extends object = DirectusFile> = ApplyQueryFields; /** * Update multiple files at the same time. * @param keys * @param item * @param query * @returns Returns the file objects for the updated files. * @throws Will throw if keys is empty */ declare const updateFiles: >>(keys: DirectusFile["id"][], item: NestedPartial>, query?: TQuery) => RestCommand[], Schema>; /** * Update multiple files as batch. * @param items * @param query * @returns Returns the file objects for the updated files. */ declare const updateFilesBatch: >>(items: NestedPartial>[], query?: TQuery) => RestCommand[], Schema>; /** * Update an existing file, and/or replace it's file contents. * @param key * @param item * @param query * @returns Returns the file object for the updated file. * @throws Will throw if key is empty */ declare const updateFile: >>(key: DirectusFile["id"], item: NestedPartial> | FormData, query?: TQuery) => RestCommand, Schema>; //#endregion export { UpdateFileOutput, updateFile, updateFiles, updateFilesBatch }; //# sourceMappingURL=files.d.ts.map