import { DirectusField } from "../../../schema/field.js"; import { NestedPartial } from "../../../types/utils.js"; import { ApplyQueryFields } from "../../../types/output.js"; import { FieldQuery, Query } from "../../../types/query.js"; import { RestCommand } from "../../types.js"; //#region src/rest/commands/update/fields.d.ts type UpdateFieldOutput, Item extends object = DirectusField> = ApplyQueryFields; /** * Updates the given field in the given collection. * @param collection * @param field * @param item * @param query * @returns * @throws Will throw if collection is empty * @throws Will throw if field is empty */ declare const updateField: >>(collection: DirectusField["collection"], field: DirectusField["field"], item: NestedPartial>, query?: TQuery) => RestCommand, Schema>; /** * Updates the multiple field in the given collection. * Update multiple existing fields. * @param collection * @param items * @param query * @returns * @throws Will throw if collection is empty */ declare const updateFields: >>(collection: DirectusField["collection"], items: NestedPartial>[], query?: TQuery) => RestCommand[], Schema>; //#endregion export { UpdateFieldOutput, updateField, updateFields }; //# sourceMappingURL=fields.d.ts.map