import { NestedPartial, UnpackList } from "../../../types/utils.js"; import { CollectionType } from "../../../types/schema.js"; import { ApplyQueryFields } from "../../../types/output.js"; import { Query } from "../../../types/query.js"; import { RestCommand } from "../../types.js"; //#region src/rest/commands/update/items.d.ts type UpdateItemOutput> = ApplyQueryFields, TQuery["fields"]>; /** * Update multiple items at the same time. * * @param collection The collection of the items * @param keysOrQuery The primary keys or a query * @param item The item data to update * @param query Optional return data query * * @returns Returns the item objects for the updated items. * @throws Will throw if keysOrQuery is empty * @throws Will throw if collection is empty * @throws Will throw if collection is a core collection */ declare const updateItems: >(collection: Collection, keysOrQuery: string[] | number[] | Query, item: NestedPartial>, query?: TQuery) => RestCommand[], Schema>; /** * Update multiple items as batch. * * @param collection The collection of the items * @param items The items to update * @param query Optional return data query * * @returns Returns the item objects for the updated items. * @throws Will throw if collection is empty * @throws Will throw if collection is a core collection */ declare const updateItemsBatch: >(collection: Collection, items: NestedPartial>[], query?: TQuery) => RestCommand[], Schema>; /** * Update an existing item. * * @param collection The collection of the item * @param key The primary key of the item * @param item The item data to update * @param query Optional return data query * * @returns Returns the item object of the item that was updated. * @throws Will throw if key is empty * @throws Will throw if collection is empty * @throws Will throw if collection is a core collection */ declare const updateItem: , Item = UnpackList>(collection: Collection, key: string | number, item: NestedPartial, query?: TQuery) => RestCommand, Schema>; //#endregion export { UpdateItemOutput, updateItem, updateItems, updateItemsBatch }; //# sourceMappingURL=items.d.ts.map